summaryrefslogtreecommitdiffstats
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
commit6dea75c65897286ada74dcaea61a1b9fdc98ae6b (patch)
treefd6a6e6f58ac8cceebac1d09b8318d17c7dcc9ee
parent608fd2b6069467973d798d01dd779218d249f600 (diff)
downloadbcm5719-llvm-6dea75c65897286ada74dcaea61a1b9fdc98ae6b.tar.gz
bcm5719-llvm-6dea75c65897286ada74dcaea61a1b9fdc98ae6b.zip
Unnamed symbol index should be >= 1. This was lost during the mangler refactoring. Fixes PR6067.
llvm-svn: 93724
-rw-r--r--llvm/include/llvm/Target/Mangler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Target/Mangler.h b/llvm/include/llvm/Target/Mangler.h
index c5ac6768fd6..04de4e9610e 100644
--- a/llvm/include/llvm/Target/Mangler.h
+++ b/llvm/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
OpenPOWER on IntegriCloud