Make strings be internal

llvm-svn: 1384
This commit is contained in:
Chris Lattner 2001-11-26 19:14:33 +00:00
parent 2459d65720
commit 84d72f9596

View File

@ -69,7 +69,8 @@ PrintMethodNameForType(const Type* type)
static inline GlobalVariable *GetStringRef(Module *M, const string &str) {
ConstPoolArray *Init = ConstPoolArray::get(str);
GlobalVariable *GV = new GlobalVariable(Init->getType(), /*Const*/true, Init);
GlobalVariable *GV = new GlobalVariable(Init->getType(), /*Const*/true,
/*intern*/true, Init);
M->getGlobalList().push_back(GV);
return GV;
}