summaryrefslogtreecommitdiff
path: root/include/llvm/Target/Mangler.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-01-18 14:39:20 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-01-18 14:39:20 +0000
commit971fd79067babb76619c8a0360166669df3a6863 (patch)
treea9452fceacff9cde0f0cbcb30a6d486b1f37003d /include/llvm/Target/Mangler.h
parent4e7e2f5a365e55d845843606bd52cf35c8f4e672 (diff)
downloadllvm-971fd79067babb76619c8a0360166669df3a6863.tar.gz
llvm-971fd79067babb76619c8a0360166669df3a6863.tar.bz2
llvm-971fd79067babb76619c8a0360166669df3a6863.tar.xz
Unnamed symbol index should be >= 1. This was lost during the mangler refactoring. Fixes PR6067.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93724 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/Mangler.h')
-rw-r--r--include/llvm/Target/Mangler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Target/Mangler.h b/include/llvm/Target/Mangler.h
index c5ac6768fd..04de4e9610 100644
--- a/include/llvm/Target/Mangler.h
+++ b/include/llvm/Target/Mangler.h
@@ -49,7 +49,7 @@ private:
public:
// Mangler ctor - if a prefix is specified, it will be prepended onto all
// symbols.
- Mangler(const MCAsmInfo &mai) : MAI(mai), NextAnonGlobalID(0) {}
+ Mangler(const MCAsmInfo &mai) : MAI(mai), NextAnonGlobalID(1) {}
/// getNameWithPrefix - Fill OutName with the name of the appropriate prefix
/// and the specified global variable's name. If the global variable doesn't