mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
change isGlobalStubReference to take target flags instead of a MachineOperand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75236 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -69,7 +69,8 @@ namespace X86 {
|
||||
/// instruction info tracks.
|
||||
///
|
||||
namespace X86II {
|
||||
enum {
|
||||
/// Target Operand Flag enum.
|
||||
enum TOF {
|
||||
//===------------------------------------------------------------------===//
|
||||
// X86 Specific MachineOperand flags.
|
||||
|
||||
@@ -179,15 +180,13 @@ namespace X86II {
|
||||
/// which is a PIC-base-relative reference to a hidden dyld lazy pointer
|
||||
/// stub.
|
||||
MO_DARWIN_HIDDEN_NONLAZY_PIC_BASE = 17
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/// isGlobalStubReference - Return true if the specified GlobalValue operand is
|
||||
/// isGlobalStubReference - Return true if the specified TargetFlag operand is
|
||||
/// a reference to a stub for a global, not the global itself.
|
||||
inline static bool isGlobalStubReference(const MachineOperand &MO) {
|
||||
assert(MO.isGlobal() && "Predicate only works on globalvalue operands");
|
||||
switch (MO.getTargetFlags()) {
|
||||
inline static bool isGlobalStubReference(unsigned char TargetFlag) {
|
||||
switch (TargetFlag) {
|
||||
case X86II::MO_DLLIMPORT: // dllimport stub.
|
||||
case X86II::MO_GOTPCREL: // rip-relative GOT reference.
|
||||
case X86II::MO_GOT: // normal GOT reference.
|
||||
|
Reference in New Issue
Block a user