diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-01-18 14:39:20 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-01-18 14:39:20 +0000 |
commit | 6dea75c65897286ada74dcaea61a1b9fdc98ae6b (patch) | |
tree | fd6a6e6f58ac8cceebac1d09b8318d17c7dcc9ee | |
parent | 608fd2b6069467973d798d01dd779218d249f600 (diff) | |
download | bcm5719-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.h | 2 |
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 |