summaryrefslogtreecommitdiff
path: root/include/llvm/DebugInfo
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-09-22 17:01:50 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-09-22 17:01:50 +0000
commiteaad5cdc2a3ac1f8813e9ee72c58428fd5e8bc33 (patch)
treeb08709b4cef3b89f70c7005f799c65bd25dd4d5f /include/llvm/DebugInfo
parent0d293e45b66c742fdbc3998209bb20ed6c5806bf (diff)
downloadllvm-eaad5cdc2a3ac1f8813e9ee72c58428fd5e8bc33.tar.gz
llvm-eaad5cdc2a3ac1f8813e9ee72c58428fd5e8bc33.tar.bz2
llvm-eaad5cdc2a3ac1f8813e9ee72c58428fd5e8bc33.tar.xz
StringRef-ize some things
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/DebugInfo')
-rw-r--r--include/llvm/DebugInfo/DIContext.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/llvm/DebugInfo/DIContext.h b/include/llvm/DebugInfo/DIContext.h
index ab0fca58ec..0e0bd2cd2b 100644
--- a/include/llvm/DebugInfo/DIContext.h
+++ b/include/llvm/DebugInfo/DIContext.h
@@ -38,11 +38,10 @@ public:
DILineInfo()
: FileName("<invalid>"), FunctionName("<invalid>"),
Line(0), Column(0) {}
- DILineInfo(const SmallString<16> &fileName,
- const SmallString<16> &functionName,
- uint32_t line, uint32_t column)
- : FileName(fileName), FunctionName(functionName),
- Line(line), Column(column) {}
+ DILineInfo(StringRef fileName, StringRef functionName, uint32_t line,
+ uint32_t column)
+ : FileName(fileName), FunctionName(functionName), Line(line),
+ Column(column) {}
const char *getFileName() { return FileName.c_str(); }
const char *getFunctionName() { return FunctionName.c_str(); }