Implement internal method support

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1374 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-11-26 18:56:10 +00:00
parent dda719665b
commit d23b1d31c0
4 changed files with 18 additions and 10 deletions

View File

@ -306,7 +306,8 @@ bool BytecodeParser::parseConstPoolValue(const uchar *&Buf,
BCR_TRACE(5, "Creating new forward ref variable!\n");
// Create a placeholder for the global variable reference...
GlobalVariable *GVar = new GlobalVariable(PT->getValueType(), false);
GlobalVariable *GVar =
new GlobalVariable(PT->getValueType(), false, true);
// Keep track of the fact that we have a forward ref to recycle it
GlobalRefs.insert(make_pair(make_pair(PT, Slot), GVar));