Add new linkage types to support a real frontend

llvm-svn: 5786
This commit is contained in:
Chris Lattner
2003-04-16 20:28:45 +00:00
parent f0e92b575f
commit 379a8d2d1c
23 changed files with 188 additions and 117 deletions

View File

@@ -352,7 +352,8 @@ bool BytecodeParser::parseConstantValue(const uchar *&Buf, const uchar *EndBuf,
// Create a placeholder for the global variable reference...
GlobalVariable *GVar =
new GlobalVariable(PT->getElementType(), false, true);
new GlobalVariable(PT->getElementType(), false,
GlobalValue::InternalLinkage);
// Keep track of the fact that we have a forward ref to recycle it
GlobalRefs.insert(std::make_pair(std::make_pair(PT, Slot), GVar));