aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-08 23:58:37 +0000
committerChris Lattner <sabre@nondot.org>2010-03-08 23:58:37 +0000
commit0d50c7620d92762eaa5c9dedd07c94f5a6a19935 (patch)
tree9b875823c81984c10175b00d3fb0dd16d682dee2 /include
parent5196018d9cb80a1cc81b95c6365de24f33c5f6bb (diff)
downloadexternal_llvm-0d50c7620d92762eaa5c9dedd07c94f5a6a19935.zip
external_llvm-0d50c7620d92762eaa5c9dedd07c94f5a6a19935.tar.gz
external_llvm-0d50c7620d92762eaa5c9dedd07c94f5a6a19935.tar.bz2
move .set generation out of DwarfPrinter into AsmPrinter and
MCize it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 8ade1bd..6187447 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -136,6 +136,7 @@ namespace llvm {
mutable const MachineInstr *LastMI;
mutable const Function *LastFn;
mutable unsigned Counter;
+ mutable unsigned SetCounter;
// Private state for processDebugLoc()
mutable const MDNode *PrevDLT;
@@ -275,6 +276,13 @@ namespace llvm {
/// EmitInt64 - Emit a long long directive and value.
///
void EmitInt64(uint64_t Value) const;
+
+
+ /// EmitLabelDifference - Emit something like ".long Hi-Lo" where the size
+ /// in bytes of the directive is specified by Size and Hi/Lo specify the
+ /// labels. This implicitly uses .set if it is available.
+ void EmitLabelDifference(const MCSymbol *Hi, const MCSymbol *Lo,
+ unsigned Size) const;
//===------------------------------------------------------------------===//