r209038 - Use getAliasee instead of getAliasedGlobal.

Rafael Espindola rafael.espindola at gmail.com
Fri May 16 15:20:18 PDT 2014


Author: rafael
Date: Fri May 16 17:20:18 2014
New Revision: 209038

URL: http://llvm.org/viewvc/llvm-project?rev=209038&view=rev
Log:
Use getAliasee instead of getAliasedGlobal.

No functionality change.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=209038&r1=209037&r2=209038&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Fri May 16 17:20:18 2014
@@ -204,7 +204,7 @@ void CodeGenModule::applyReplacements()
     auto *NewF = dyn_cast<llvm::Function>(Replacement);
     if (!NewF) {
       if (auto *Alias = dyn_cast<llvm::GlobalAlias>(Replacement)) {
-        NewF = dyn_cast<llvm::Function>(Alias->getAliasedGlobal());
+        NewF = dyn_cast<llvm::Function>(Alias->getAliasee());
       } else {
         auto *CE = cast<llvm::ConstantExpr>(Replacement);
         assert(CE->getOpcode() == llvm::Instruction::BitCast ||
@@ -237,7 +237,7 @@ void CodeGenModule::checkAliases() {
     StringRef MangledName = getMangledName(GD);
     llvm::GlobalValue *Entry = GetGlobalValue(MangledName);
     auto *Alias = cast<llvm::GlobalAlias>(Entry);
-    llvm::GlobalValue *GV = Alias->getAliasedGlobal();
+    llvm::GlobalValue *GV = Alias->getAliasee();
     if (GV->isDeclaration()) {
       Error = true;
       Diags.Report(AA->getLocation(), diag::err_alias_to_undefined);





More information about the cfe-commits mailing list