summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCObjectFormat.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-12-18 05:37:28 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-12-18 05:37:28 +0000
commit8396dd0893d5b0168cf66fd65108676c362f644c (patch)
tree22738b12f9bad5cec194023144fd1fa1d297ebb1 /llvm/lib/MC/MCObjectFormat.cpp
parent1b47773e1fb6189c48e083a110274912218e8bcf (diff)
downloadbcm5719-llvm-8396dd0893d5b0168cf66fd65108676c362f644c.tar.gz
bcm5719-llvm-8396dd0893d5b0168cf66fd65108676c362f644c.zip
Remove the MCObjectFormat class.
llvm-svn: 122147
Diffstat (limited to 'llvm/lib/MC/MCObjectFormat.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFormat.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/llvm/lib/MC/MCObjectFormat.cpp b/llvm/lib/MC/MCObjectFormat.cpp
deleted file mode 100644
index aeff3347187..00000000000
--- a/llvm/lib/MC/MCObjectFormat.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-//===- lib/MC/MCObjectFormat.cpp - MCObjectFormat implementation ----------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include "llvm/MC/MCObjectFormat.h"
-#include "llvm/MC/MCSymbol.h"
-
-using namespace llvm;
-
-MCObjectFormat::~MCObjectFormat() {
-}
-
-bool MCELFObjectFormat::isAbsolute(bool IsSet, const MCSymbol &A,
- const MCSymbol &B) const {
- // On ELF A - B is absolute if A and B are in the same section.
- return &A.getSection() == &B.getSection();
-}
-
-bool MCMachOObjectFormat::isAbsolute(bool IsSet, const MCSymbol &A,
- const MCSymbol &B) const {
- // On MachO A - B is absolute only if in a set.
- return IsSet;
-}
-
-bool MCCOFFObjectFormat::isAbsolute(bool IsSet, const MCSymbol &A,
- const MCSymbol &B) const {
- // On COFF A - B is absolute if A and B are in the same section.
- return &A.getSection() == &B.getSection();
-}
OpenPOWER on IntegriCloud