Skip to content

Commit 3dd9d43

Browse files
committed
Fix compilation on LLVM svn
`GlobalValue::setUnnamedAddr` Ref llvm-mirror/llvm@63b34cd
1 parent 68e1dd4 commit 3dd9d43

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cgutils.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ static Value *stringConstPtr(const std::string &txt)
5959
(const unsigned char*)pooledtxt.data(),
6060
pooledtxt.size())),
6161
ssno.str());
62+
#ifdef LLVM39
63+
gv->setUnnamedAddr(GlobalValue::UnnamedAddr::Global);
64+
#else
6265
gv->setUnnamedAddr(true);
66+
#endif
6367
pooledval->second = gv;
6468
jl_ExecutionEngine->addGlobalMapping(gv, (void*)(uintptr_t)pooledtxt.data());
6569
}

0 commit comments

Comments
 (0)