summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCStreamer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-19 19:46:13 +0000
committerChris Lattner <sabre@nondot.org>2010-01-19 19:46:13 +0000
commitc35681b2986163ce5a4d8952c9efb6a2a24e8da5 (patch)
treecb1cc294d092a9743f759fb02fd6b9b56a3cc73b /llvm/lib/MC/MCStreamer.cpp
parentbf43525a2933c3ddb60f00a89e22c52c06bc77d6 (diff)
downloadbcm5719-llvm-c35681b2986163ce5a4d8952c9efb6a2a24e8da5.tar.gz
bcm5719-llvm-c35681b2986163ce5a4d8952c9efb6a2a24e8da5.zip
Generalize mcasmstreamer data emission APIs to take an address space
identifier. There is no way to work around it. llvm-svn: 93896
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCStreamer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp
index e43d9413093..20767de3bee 100644
--- a/llvm/lib/MC/MCStreamer.cpp
+++ b/llvm/lib/MC/MCStreamer.cpp
@@ -20,8 +20,9 @@ MCStreamer::~MCStreamer() {
/// EmitFill - Emit NumBytes bytes worth of the value specified by
/// FillValue. This implements directives such as '.space'.
-void MCStreamer::EmitFill(uint64_t NumBytes, uint8_t FillValue) {
+void MCStreamer::EmitFill(uint64_t NumBytes, uint8_t FillValue,
+ unsigned AddrSpace) {
const MCExpr *E = MCConstantExpr::Create(FillValue, getContext());
for (uint64_t i = 0, e = NumBytes; i != e; ++i)
- EmitValue(E, 1);
+ EmitValue(E, 1, AddrSpace);
}
OpenPOWER on IntegriCloud