Merge pull request #775 from ifilippov/alias_new
Support LLVM trunk after r204934 and zlib commits
This commit is contained in:
4
Makefile
4
Makefile
@@ -53,7 +53,7 @@ will do all the work for you. Do the following: \n
|
||||
2. Set ISPC_HOME variable to your ISPC location (probably current folder).
|
||||
3. Run alloy.py tool to checkout and build LLVM: \n
|
||||
alloy.py -b --version=3.4 \n
|
||||
4. Add $LLVM_HOME/bin-3.4/bin path to your PATH. \n
|
||||
4. Add $$LLVM_HOME/bin-3.4/bin path to your PATH. \n
|
||||
==============================================================================
|
||||
endef
|
||||
|
||||
@@ -114,7 +114,7 @@ ifeq ($(LLVM_VERSION),LLVM_3_4)
|
||||
endif
|
||||
|
||||
ifeq ($(LLVM_VERSION),LLVM_3_5)
|
||||
ISPC_LIBS += -lcurses
|
||||
ISPC_LIBS += -lcurses -lz
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH_OS),Linux)
|
||||
|
||||
@@ -1769,7 +1769,11 @@ std::string CWriter::GetValueName(const llvm::Value *Operand) {
|
||||
|
||||
// Resolve potential alias.
|
||||
if (const llvm::GlobalAlias *GA = llvm::dyn_cast<llvm::GlobalAlias>(Operand)) {
|
||||
#if defined(LLVM_3_5)
|
||||
if (const llvm::Value *V = GA->getAliasedGlobal())
|
||||
#else
|
||||
if (const llvm::Value *V = GA->resolveAliasedGlobal(false))
|
||||
#endif
|
||||
Operand = V;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user