mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Simplify a really complicated check for Arch == X86_64.
The function hasReliableSymbolDifference had exactly one use in the MachO writer. It is also only true for X86_64. In fact, the comments refers to "Darwin x86_64" and everything else, so this makes the code match the comment. If this is to be abstracted again, it should be a property of TargetObjectWriter, like useAggressiveSymbolFolding. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203605 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -38,7 +38,6 @@ class MCAsmBackend {
|
||||
protected: // Can only create subclasses.
|
||||
MCAsmBackend();
|
||||
|
||||
unsigned HasReliableSymbolDifference : 1;
|
||||
unsigned HasDataInCodeSupport : 1;
|
||||
|
||||
public:
|
||||
@@ -58,20 +57,6 @@ public:
|
||||
"backend");
|
||||
}
|
||||
|
||||
/// hasReliableSymbolDifference - Check whether this target implements
|
||||
/// accurate relocations for differences between symbols. If not, differences
|
||||
/// between symbols will always be relocatable expressions and any references
|
||||
/// to temporary symbols will be assumed to be in the same atom, unless they
|
||||
/// reside in a different section.
|
||||
///
|
||||
/// This should always be true (since it results in fewer relocations with no
|
||||
/// loss of functionality), but is currently supported as a way to maintain
|
||||
/// exact object compatibility with Darwin 'as' (on non-x86_64). It should
|
||||
/// eventually should be eliminated.
|
||||
bool hasReliableSymbolDifference() const {
|
||||
return HasReliableSymbolDifference;
|
||||
}
|
||||
|
||||
/// hasDataInCodeSupport - Check whether this target implements data-in-code
|
||||
/// markers. If not, data region directives will be ignored.
|
||||
bool hasDataInCodeSupport() const { return HasDataInCodeSupport; }
|
||||
|
Reference in New Issue
Block a user