diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-06-08 20:08:30 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-06-08 20:08:30 +0000 |
commit | 8e6e7c90ce5ecefb78637491ba40bf98c3ca1b67 (patch) | |
tree | 6a97f95bcef025f6339cbf1d703da4ebc5884f96 | |
parent | 0bbcd6bfd1a90c2aa7386a88ba9fc9aba47d03a7 (diff) |
Fix a minor bug in the map - since this pass adds a global symbol, it must be
accounted for in the map (at least, in its current format).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14075 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/SparcV9/InternalGlobalMapper.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/SparcV9/InternalGlobalMapper.cpp b/lib/Target/SparcV9/InternalGlobalMapper.cpp index 8df87fd000..7d4a40a13b 100644 --- a/lib/Target/SparcV9/InternalGlobalMapper.cpp +++ b/lib/Target/SparcV9/InternalGlobalMapper.cpp @@ -54,6 +54,10 @@ bool InternalGlobalMapper::run (Module &M) { // Populate the vector with internal global values and their names. for (Module::giterator i = M.gbegin (), e = M.gend (); i != e; ++i) maybeAddInternalValueToVector (gvvector, *i); + // Add an extra global for _llvm_internalGlobals itself (null, + // because it's not internal) + gvvector.push_back (ConstantPointerNull::get + (PointerType::get (Type::SByteTy))); for (Module::iterator i = M.begin (), e = M.end (); i != e; ++i) maybeAddInternalValueToVector (gvvector, *i); |