support of LLVM trunk

This commit is contained in:
Ilia Filippov
2014-05-22 18:50:57 +04:00
parent 68f62b1fc3
commit 5f55a9b9e2

View File

@@ -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 <llvm/Assembly/PrintModulePass.h>
@@ -1770,7 +1771,7 @@ 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())
if (const llvm::Value *V = GA->getAliasee())
#else
if (const llvm::Value *V = GA->resolveAliasedGlobal(false))
#endif