From ba9c6434b95b56d7b1c1b390d5da7becb2bdf1b2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 10 Nov 2005 21:39:29 +0000 Subject: [PATCH] do not allow '.' in symbol names git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24292 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/CBackend/CBackend.cpp | 1 + lib/Target/CBackend/Writer.cpp | 1 + 2 files changed, 2 insertions(+) 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"; -- 2.34.1