aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CBackend/CBackend.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-10 21:39:29 +0000
committerChris Lattner <sabre@nondot.org>2005-11-10 21:39:29 +0000
commitba9c6434b95b56d7b1c1b390d5da7becb2bdf1b2 (patch)
tree47412953779c30ec5d4d3ef74ae50a6d5fe2a8b6 /lib/Target/CBackend/CBackend.cpp
parentd35f6056137788fcee34b25e70b0d14b453490fc (diff)
do not allow '.' in symbol names
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r--lib/Target/CBackend/CBackend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 6bc3c50434..ce7f4c8ff2 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";