do not allow '.' in symbol names
authorChris Lattner <sabre@nondot.org>
Thu, 10 Nov 2005 21:39:29 +0000 (21:39 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 10 Nov 2005 21:39:29 +0000 (21:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24292 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp

index 6bc3c504344dbcc356d04732706a10bccec86d9b..ce7f4c8ff240a32a0eee1a35d779230c0e10ea0e 100644 (file)
@@ -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";
index 6bc3c504344dbcc356d04732706a10bccec86d9b..ce7f4c8ff240a32a0eee1a35d779230c0e10ea0e 100644 (file)
@@ -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";