summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZMCInstLower.h
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-09-25 10:37:17 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-09-25 10:37:17 +0000
commit76f8ae87b4705f5c08c3995948223531715a2d58 (patch)
tree744e1d8378c7bd2cff4bf2c110da7a00f499a2db /lib/Target/SystemZ/SystemZMCInstLower.h
parente39a156b921f47a374f091b43205555ee90cd555 (diff)
downloadllvm-76f8ae87b4705f5c08c3995948223531715a2d58.tar.gz
llvm-76f8ae87b4705f5c08c3995948223531715a2d58.tar.bz2
llvm-76f8ae87b4705f5c08c3995948223531715a2d58.tar.xz
[SystemZ] Define the call instructions as pseudo aliases.
Similar to r191364, but for calls. This patch also removes the shortening of BRASL to BRAS within a TU. Doing that was a bit controversial internally, since there's a strong expectation with the z assembler that WYWIWYG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZMCInstLower.h')
-rw-r--r--lib/Target/SystemZ/SystemZMCInstLower.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Target/SystemZ/SystemZMCInstLower.h b/lib/Target/SystemZ/SystemZMCInstLower.h
index db5bdb05ab..33a849d6c7 100644
--- a/lib/Target/SystemZ/SystemZMCInstLower.h
+++ b/lib/Target/SystemZ/SystemZMCInstLower.h
@@ -10,14 +10,13 @@
#ifndef LLVM_SYSTEMZMCINSTLOWER_H
#define LLVM_SYSTEMZMCINSTLOWER_H
+#include "llvm/MC/MCExpr.h"
#include "llvm/Support/DataTypes.h"
#include "llvm/Support/Compiler.h"
namespace llvm {
-class MCContext;
class MCInst;
class MCOperand;
-class MCSymbol;
class MachineInstr;
class MachineOperand;
class Mangler;
@@ -38,9 +37,9 @@ public:
// Return an MCOperand for MO.
MCOperand lowerOperand(const MachineOperand& MO) const;
- // Return an MCOperand for MO, given that it equals Symbol + Offset.
- MCOperand lowerSymbolOperand(const MachineOperand &MO,
- const MCSymbol *Symbol, int64_t Offset) const;
+ // Return an MCExpr for symbolic operand MO with variant kind Kind.
+ const MCExpr *getExpr(const MachineOperand &MO,
+ MCSymbolRefExpr::VariantKind Kind) const;
};
} // end namespace llvm