mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
Make strings be internal
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1384 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e81dc1dd94
commit
9e00579228
@ -69,7 +69,8 @@ PrintMethodNameForType(const Type* type)
|
|||||||
|
|
||||||
static inline GlobalVariable *GetStringRef(Module *M, const string &str) {
|
static inline GlobalVariable *GetStringRef(Module *M, const string &str) {
|
||||||
ConstPoolArray *Init = ConstPoolArray::get(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);
|
M->getGlobalList().push_back(GV);
|
||||||
return GV;
|
return GV;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user