support of LLVM trunk
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user