aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-10-01 15:14:14 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-10-01 15:14:14 +0000
commitf0070f2a973ff046ee63de827ab32ff215b369b2 (patch)
treed7cca1e05d979af11340a7a19e50e01b38551bb4 /include/llvm/MC
parentcfb65293c36612884010144a6d93b8e98570b3a9 (diff)
downloadexternal_llvm-f0070f2a973ff046ee63de827ab32ff215b369b2.zip
external_llvm-f0070f2a973ff046ee63de827ab32ff215b369b2.tar.gz
external_llvm-f0070f2a973ff046ee63de827ab32ff215b369b2.tar.bz2
Provide a shortcut for MCObjectStreamer when emitting fills.
Reduces runtime of i386-large-relocations.s by 10x in Release builds, even more in Debug+Asserts builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164945 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-rw-r--r--include/llvm/MC/MCObjectStreamer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/MC/MCObjectStreamer.h b/include/llvm/MC/MCObjectStreamer.h
index b59b76c..1869078 100644
--- a/include/llvm/MC/MCObjectStreamer.h
+++ b/include/llvm/MC/MCObjectStreamer.h
@@ -81,6 +81,8 @@ public:
const MCSymbol *Label);
virtual void EmitGPRel32Value(const MCExpr *Value);
virtual void EmitGPRel64Value(const MCExpr *Value);
+ virtual void EmitFill(uint64_t NumBytes, uint8_t FillValue,
+ unsigned AddrSpace);
virtual void FinishImpl();
/// @}