summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-01-15 02:24:12 +0000
committerPete Cooper <peter_cooper@apple.com>2016-01-15 02:24:12 +0000
commit835594e62702024a86a9884cad4721d78bab4593 (patch)
tree963352ff0241d2aa08c2c4331f5603cdbbf52566 /llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
parentb825bf32b7738f8ba4e2701a49c1cd2906654e66 (diff)
downloadbcm5719-llvm-835594e62702024a86a9884cad4721d78bab4593.tar.gz
bcm5719-llvm-835594e62702024a86a9884cad4721d78bab4593.zip
Delete MCRelocationInfo::createExprForRelocation.
This method has no callers. Also remove X86ELFRelocationInfo.cpp and X86MachORelocationInfo.cpp which only existed to provide an implementation of that method. Ok'd by Rafael and Jim. llvm-svn: 257859
Diffstat (limited to 'llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp')
-rw-r--r--llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
index 53a6550acdd..25a377c5acc 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
+++ b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
@@ -215,10 +215,6 @@ static MCInstPrinter *createX86MCInstPrinter(const Triple &T,
static MCRelocationInfo *createX86MCRelocationInfo(const Triple &TheTriple,
MCContext &Ctx) {
- if (TheTriple.isOSBinFormatMachO() && TheTriple.getArch() == Triple::x86_64)
- return createX86_64MachORelocationInfo(Ctx);
- else if (TheTriple.isOSBinFormatELF())
- return createX86_64ELFRelocationInfo(Ctx);
// Default to the stock relocation info.
return llvm::createMCRelocationInfo(TheTriple, Ctx);
}
OpenPOWER on IntegriCloud