summaryrefslogtreecommitdiffstats
path: root/lldb/include
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-01-07 10:37:57 +0100
committerRaphael Isemann <teemperor@gmail.com>2020-01-07 10:50:59 +0100
commitd364815351a887cbcd4579bc41995f8b2eb185ff (patch)
tree1c471d6fe5f49a5ef2bd702a15992c29e1a5c14a /lldb/include
parentab1bcda851d95aeec03ffc1218bf9cae261a9280 (diff)
downloadbcm5719-llvm-d364815351a887cbcd4579bc41995f8b2eb185ff.tar.gz
bcm5719-llvm-d364815351a887cbcd4579bc41995f8b2eb185ff.zip
[lldb][NFC] Take a llvm::Triple in ClangASTContext constructor
This constructor is supposed to take a string representing an llvm::Triple. We might as well take a llvm::Triple here which saves us all the string conversions in the call sites and we make this more type safe.
Diffstat (limited to 'lldb/include')
-rw-r--r--lldb/include/lldb/Host/HostInfoBase.h6
-rw-r--r--lldb/include/lldb/Symbol/ClangASTContext.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/lldb/include/lldb/Host/HostInfoBase.h b/lldb/include/lldb/Host/HostInfoBase.h
index 5f0a4ab01f6..c59050cb34e 100644
--- a/lldb/include/lldb/Host/HostInfoBase.h
+++ b/lldb/include/lldb/Host/HostInfoBase.h
@@ -33,11 +33,11 @@ public:
static void Initialize();
static void Terminate();
- /// Gets the host target triple as a const string.
+ /// Gets the host target triple.
///
/// \return
- /// A const string object containing the host target triple.
- static llvm::StringRef GetTargetTriple();
+ /// The host target triple.
+ static llvm::Triple GetTargetTriple();
enum ArchitectureKind {
eArchKindDefault, // The overall default architecture that applications will
diff --git a/lldb/include/lldb/Symbol/ClangASTContext.h b/lldb/include/lldb/Symbol/ClangASTContext.h
index 53ecd1bb78f..9e8d301fd3f 100644
--- a/lldb/include/lldb/Symbol/ClangASTContext.h
+++ b/lldb/include/lldb/Symbol/ClangASTContext.h
@@ -56,7 +56,7 @@ public:
static bool classof(const TypeSystem *ts) { return ts->isA(&ID); }
// Constructors and Destructors
- explicit ClangASTContext(llvm::StringRef triple = "");
+ explicit ClangASTContext(llvm::Triple triple = llvm::Triple());
explicit ClangASTContext(ArchSpec arch);
/// Constructs a ClangASTContext that uses an existing ASTContext internally.
OpenPOWER on IntegriCloud