aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/MC/MCParser/AsmParser.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp
index 4ab60c1..aac020d 100644
--- a/lib/MC/MCParser/AsmParser.cpp
+++ b/lib/MC/MCParser/AsmParser.cpp
@@ -443,11 +443,8 @@ bool AsmParser::ProcessIncbinFile(const std::string &Filename) {
return true;
// Pick up the bytes from the file and emit them.
- const char *BufferStart = SrcMgr.getMemoryBuffer(NewBuf)->getBufferStart();
- size_t BufferSize = SrcMgr.getMemoryBuffer(NewBuf)->getBufferSize();
- std::string Data(BufferStart, BufferSize);
- getStreamer().EmitBytes(Data, DEFAULT_ADDRSPACE);
-
+ getStreamer().EmitBytes(SrcMgr.getMemoryBuffer(NewBuf)->getBuffer(),
+ DEFAULT_ADDRSPACE);
return false;
}