From: Chris Lattner Date: Thu, 10 Nov 2005 21:39:29 +0000 (+0000) Subject: do not allow '.' in symbol names X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ba9c6434b95b56d7b1c1b390d5da7becb2bdf1b2;p=oota-llvm.git do not allow '.' in symbol names git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24292 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 6bc3c504344..ce7f4c8ff24 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -834,6 +834,7 @@ bool CWriter::doInitialization(Module &M) { // Ensure that all structure types have names... Mang = new Mangler(M); + Mang->markCharUnacceptable('.'); // get declaration for alloca Out << "/* Provide Declarations */\n"; diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 6bc3c504344..ce7f4c8ff24 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -834,6 +834,7 @@ bool CWriter::doInitialization(Module &M) { // Ensure that all structure types have names... Mang = new Mangler(M); + Mang->markCharUnacceptable('.'); // get declaration for alloca Out << "/* Provide Declarations */\n";