summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-10-01 06:46:33 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-10-01 06:46:33 +0000
commit36d33fc1098a2377bf6b5a20e98351c06db0cfe1 (patch)
treee47beafb5ea59b4094b95accd5447a8e9951fa26 /llvm/tools/llvm-objdump
parentcd354a659b89cf5fed6a578ec3fb665607c573ac (diff)
downloadbcm5719-llvm-36d33fc1098a2377bf6b5a20e98351c06db0cfe1.tar.gz
bcm5719-llvm-36d33fc1098a2377bf6b5a20e98351c06db0cfe1.zip
Use StringRef instead of raw pointers in MCAsmInfo/MCInstrInfo APIs (NFC)
llvm-svn: 283018
Diffstat (limited to 'llvm/tools/llvm-objdump')
-rw-r--r--llvm/tools/llvm-objdump/MachODump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objdump/MachODump.cpp b/llvm/tools/llvm-objdump/MachODump.cpp
index 804a93967f5..a2f0e8dc312 100644
--- a/llvm/tools/llvm-objdump/MachODump.cpp
+++ b/llvm/tools/llvm-objdump/MachODump.cpp
@@ -6397,7 +6397,7 @@ static void emitComments(raw_svector_ostream &CommentStream,
// Flush the stream before taking its content.
StringRef Comments = CommentsToEmit.str();
// Get the default information for printing a comment.
- const char *CommentBegin = MAI.getCommentString();
+ StringRef CommentBegin = MAI.getCommentString();
unsigned CommentColumn = MAI.getCommentColumn();
bool IsFirst = true;
while (!Comments.empty()) {
OpenPOWER on IntegriCloud