From 5f55a9b9e280ccbb057a995773fe77e8cb05b25e Mon Sep 17 00:00:00 2001 From: Ilia Filippov Date: Thu, 22 May 2014 18:50:57 +0400 Subject: [PATCH] support of LLVM trunk --- cbackend.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cbackend.cpp b/cbackend.cpp index 1c9626b5..51890d7f 100644 --- a/cbackend.cpp +++ b/cbackend.cpp @@ -69,6 +69,7 @@ #include "llvm/IR/CallSite.h" #include "llvm/IR/CFG.h" #include "llvm/IR/GetElementPtrTypeIterator.h" + #include "llvm/Support/FileSystem.h" #else #include "llvm/Analysis/Verifier.h" #include @@ -1770,7 +1771,7 @@ std::string CWriter::GetValueName(const llvm::Value *Operand) { // Resolve potential alias. if (const llvm::GlobalAlias *GA = llvm::dyn_cast(Operand)) { #if defined(LLVM_3_5) - if (const llvm::Value *V = GA->getAliasedGlobal()) + if (const llvm::Value *V = GA->getAliasee()) #else if (const llvm::Value *V = GA->resolveAliasedGlobal(false)) #endif