aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-12-08 01:16:55 +0000
committerJim Grosbach <grosbach@apple.com>2010-12-08 01:16:55 +0000
commit5be6d2af38c29e3653998978345220974cc40c01 (patch)
tree6c08f8d9129cbaef8c42c7e2219174b6e78f0f46 /include
parent1b19dc1d8b7594434ea9a157bfe2ae68eabf9f05 (diff)
downloadexternal_llvm-5be6d2af38c29e3653998978345220974cc40c01.zip
external_llvm-5be6d2af38c29e3653998978345220974cc40c01.tar.gz
external_llvm-5be6d2af38c29e3653998978345220974cc40c01.tar.bz2
Let target asm backends see assembler flags as they go by. Use that to handle
thumb vs. arm mode differences in WriteNopData(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121219 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetAsmBackend.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetAsmBackend.h b/include/llvm/Target/TargetAsmBackend.h
index ba34472..4805e19 100644
--- a/include/llvm/Target/TargetAsmBackend.h
+++ b/include/llvm/Target/TargetAsmBackend.h
@@ -10,6 +10,7 @@
#ifndef LLVM_TARGET_TARGETASMBACKEND_H
#define LLVM_TARGET_TARGETASMBACKEND_H
+#include "llvm/MC/MCDirectives.h"
#include "llvm/Support/DataTypes.h"
namespace llvm {
@@ -109,6 +110,10 @@ public:
///
/// \return - True on success.
virtual bool WriteNopData(uint64_t Count, MCObjectWriter *OW) const = 0;
+
+ /// HandleAssemblerFlag - Handle any target-specific assembler flags.
+ /// By default, do nothing.
+ virtual void HandleAssemblerFlag(MCAssemblerFlag Flag) {}
};
} // End llvm namespace