summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2015-07-06 16:56:07 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2015-07-06 16:56:07 +0000
commitf423f5627caed62aadb02ebecfc464dfb1c99097 (patch)
tree273c3214480e8465d87cb322e0703641e1dfcaaa /llvm/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp
parentef8f95417acd298a8b042dab887c8567831113f1 (diff)
downloadbcm5719-llvm-f423f5627caed62aadb02ebecfc464dfb1c99097.tar.gz
bcm5719-llvm-f423f5627caed62aadb02ebecfc464dfb1c99097.zip
Change the last few internal StringRef triples into Triple objects.
Summary: This concludes the patch series to eliminate StringRef forms of GNU triples from the internals of LLVM that began in r239036. At this point, the StringRef-form of GNU Triples should only be used in the public API (including IR serialization) and a couple objects that directly interact with the API (most notably the Module class). The next step is to replace these Triple objects with the TargetTuple object that will represent our authoratative/unambiguous internal equivalent to GNU Triples. Reviewers: rengolin Subscribers: llvm-commits, jholewinski, ted, rengolin Differential Revision: http://reviews.llvm.org/D10962 llvm-svn: 241472
Diffstat (limited to 'llvm/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp')
-rw-r--r--llvm/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp b/llvm/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp
index 68948d36d65..5fc2ca44f5d 100644
--- a/llvm/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp
+++ b/llvm/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp
@@ -16,6 +16,10 @@
using namespace llvm;
+namespace llvm {
+class Triple;
+}
+
// This function tries to add a symbolic operand in place of the immediate
// Value in the MCInst. The immediate Value has had any PC adjustment made by
// the caller. If the instruction is a branch instruction then IsBranch is true,
@@ -184,7 +188,7 @@ void MCExternalSymbolizer::tryAddingPcLoadReferenceComment(raw_ostream &cStream,
}
namespace llvm {
-MCSymbolizer *createMCSymbolizer(StringRef TT, LLVMOpInfoCallback GetOpInfo,
+MCSymbolizer *createMCSymbolizer(const Triple &TT, LLVMOpInfoCallback GetOpInfo,
LLVMSymbolLookupCallback SymbolLookUp,
void *DisInfo, MCContext *Ctx,
std::unique_ptr<MCRelocationInfo> &&RelInfo) {
OpenPOWER on IntegriCloud