From 170427bba1b82d71c45526d34a810331a82c39fd Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 26 Mar 2008 14:53:53 +0000 Subject: [PATCH] Fix r1010; bad prefix default git-svn-id: file://localhost/svn/verilator/trunk/verilator@1011 77ca24e4-aefa-0310-84f0-b9a241c72d87 --- src/V3Options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3Options.cpp b/src/V3Options.cpp index 5f30e9cf8..e5fcf30e1 100644 --- a/src/V3Options.cpp +++ b/src/V3Options.cpp @@ -429,7 +429,7 @@ void V3Options::parseOpts (FileLine* fl, int argc, char** argv) { } // Default prefix to the filename - if (prefix()=="") m_prefix = string("V")+topModule(); + if (prefix()=="" && topModule()!="") m_prefix = string("V")+topModule(); if (prefix()=="") m_prefix = string("V")+filenameNonExt(*(vFiles().begin())); if (modPrefix()=="") m_modPrefix = prefix();