aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-26 21:48:55 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-26 21:48:55 +0000
commitcb8326dc09d900688b2d15bd9c977d1c3b722427 (patch)
tree2927931086688576d994788d2a350faa5ab99769 /include/llvm
parent160a3bf74d1a2b048f65e2162d038ed96eddde01 (diff)
downloadexternal_llvm-cb8326dc09d900688b2d15bd9c977d1c3b722427.zip
external_llvm-cb8326dc09d900688b2d15bd9c977d1c3b722427.tar.gz
external_llvm-cb8326dc09d900688b2d15bd9c977d1c3b722427.tar.bz2
MC: Add TargetMachine support for setting the value of MCRelaxAll with
-filetype=obj. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Target/TargetMachine.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h
index bffba18..227499b 100644
--- a/include/llvm/Target/TargetMachine.h
+++ b/include/llvm/Target/TargetMachine.h
@@ -101,7 +101,9 @@ protected: // Can only create subclasses.
/// AsmInfo - Contains target specific asm information.
///
const MCAsmInfo *AsmInfo;
-
+
+ unsigned MCRelaxAll : 1;
+
public:
virtual ~TargetMachine();
@@ -158,6 +160,14 @@ public:
///
virtual const TargetELFWriterInfo *getELFWriterInfo() const { return 0; }
+ /// hasMCRelaxAll - Check whether all machine code instructions should be
+ /// relaxed.
+ bool hasMCRelaxAll() const { return MCRelaxAll; }
+
+ /// setMCRelaxAll - Set whether all machine code instructions should be
+ /// relaxed.
+ void setMCRelaxAll(bool Value) { MCRelaxAll = Value; }
+
/// getRelocationModel - Returns the code generation relocation model. The
/// choices are static, PIC, and dynamic-no-pic, and target default.
static Reloc::Model getRelocationModel();