MCObjectFormat.cpp [plain text]
#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 {
return &A.getSection() == &B.getSection();
}
bool MCMachOObjectFormat::isAbsolute(bool IsSet, const MCSymbol &A,
const MCSymbol &B) const {
return IsSet;
}
bool MCCOFFObjectFormat::isAbsolute(bool IsSet, const MCSymbol &A,
const MCSymbol &B) const {
return &A.getSection() == &B.getSection();
}