X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FMC%2FMCSymbol.cpp;h=24165254e56a67d115c700f3f797df7f03086459;hb=f08cddcf560b1eb8401d405501e26cf3c3843fb4;hp=d0283a635bef31aa3889cdb23756810657b0db14;hpb=54e582179f328717d9e1fc6b7ded5c8083b926a6;p=oota-llvm.git diff --git a/lib/MC/MCSymbol.cpp b/lib/MC/MCSymbol.cpp index d0283a635be..24165254e56 100644 --- a/lib/MC/MCSymbol.cpp +++ b/lib/MC/MCSymbol.cpp @@ -9,7 +9,6 @@ #include "llvm/MC/MCSymbol.h" #include "llvm/MC/MCExpr.h" -#include "llvm/MC/MCValue.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; @@ -52,22 +51,6 @@ const MCSymbol &MCSymbol::AliasedSymbol() const { return *S; } -const MCSymbol *MCSymbol::getBaseSymbol(const MCAsmLayout &Layout) const { - if (!isVariable()) - return this; - - const MCExpr *Expr = getVariableValue(); - MCValue Value; - if (!Expr->EvaluateAsRelocatable(Value, &Layout)) - return nullptr; - - if (Value.getSymB()) - return nullptr; - if (const MCSymbolRefExpr *A = Value.getSymA()) - return &A->getSymbol(); - return nullptr; -} - void MCSymbol::setVariableValue(const MCExpr *Value) { assert(!IsUsed && "Cannot set a variable that has already been used."); assert(Value && "Invalid variable value!");