[llvm-commits] [llvm] r93724 - /llvm/trunk/include/llvm/Target/Mangler.h
Benjamin Kramer
benny.kra at googlemail.com
Mon Jan 18 06:39:21 PST 2010
Author: d0k
Date: Mon Jan 18 08:39:20 2010
New Revision: 93724
URL: http://llvm.org/viewvc/llvm-project?rev=93724&view=rev
Log:
Unnamed symbol index should be >= 1. This was lost during the mangler refactoring. Fixes PR6067.
Modified:
llvm/trunk/include/llvm/Target/Mangler.h
Modified: llvm/trunk/include/llvm/Target/Mangler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/Mangler.h?rev=93724&r1=93723&r2=93724&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/Mangler.h (original)
+++ llvm/trunk/include/llvm/Target/Mangler.h Mon Jan 18 08:39:20 2010
@@ -49,7 +49,7 @@
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
More information about the llvm-commits
mailing list