summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-16 22:38:48 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-16 22:38:48 +0000
commit4498168753db4b73ce4424635919fed4d128f504 (patch)
tree254aa54001f627aa2bd69fcd2c689db560155245 /llvm/lib
parent8addadc6911f6d3c07e624147a23f9ce30ebc49f (diff)
downloadbcm5719-llvm-4498168753db4b73ce4424635919fed4d128f504.tar.gz
bcm5719-llvm-4498168753db4b73ce4424635919fed4d128f504.zip
Add StringRef::{rfind, rsplit}
llvm-svn: 82087
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/CMakeLists.txt1
-rw-r--r--llvm/lib/Support/StringRef.cpp13
2 files changed, 14 insertions, 0 deletions
diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt
index 4f023973a1f..cd355ffe360 100644
--- a/llvm/lib/Support/CMakeLists.txt
+++ b/llvm/lib/Support/CMakeLists.txt
@@ -27,6 +27,7 @@ add_llvm_library(LLVMSupport
StringExtras.cpp
StringMap.cpp
StringPool.cpp
+ StringRef.cpp
SystemUtils.cpp
TargetRegistry.cpp
Timer.cpp
diff --git a/llvm/lib/Support/StringRef.cpp b/llvm/lib/Support/StringRef.cpp
new file mode 100644
index 00000000000..4751f06645c
--- /dev/null
+++ b/llvm/lib/Support/StringRef.cpp
@@ -0,0 +1,13 @@
+//===-- StringRef.cpp - Lightweight String References ---------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/ADT/StringRef.h"
+using namespace llvm;
+
+const size_t StringRef::npos;
OpenPOWER on IntegriCloud