summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-12-03 02:54:21 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-12-03 02:54:21 +0000
commit2df042cb32ecb8d2e1d499dfa27d5074c8b40e13 (patch)
treed807e249227d692d07520e298c1c78fb0953051e /include
parent6cfab3748ce62067f7ca9b731295e8b39fd72258 (diff)
downloadllvm-2df042cb32ecb8d2e1d499dfa27d5074c8b40e13.tar.gz
llvm-2df042cb32ecb8d2e1d499dfa27d5074c8b40e13.tar.bz2
llvm-2df042cb32ecb8d2e1d499dfa27d5074c8b40e13.tar.xz
Make EmitIntValue more efficient and more like what we do for leb128. The
difference is much smaller (about 0.3s) but significant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCStreamer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h
index 03fd011418..16646c96d3 100644
--- a/include/llvm/MC/MCStreamer.h
+++ b/include/llvm/MC/MCStreamer.h
@@ -246,7 +246,8 @@ namespace llvm {
/// EmitIntValue - Special case of EmitValue that avoids the client having
/// to pass in a MCExpr for constant integers.
- void EmitIntValue(uint64_t Value, unsigned Size, unsigned AddrSpace = 0);
+ virtual void EmitIntValue(uint64_t Value, unsigned Size,
+ unsigned AddrSpace = 0);
virtual void EmitULEB128Value(const MCExpr *Value,