diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-16 22:38:48 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-16 22:38:48 +0000 |
commit | d86d635d2831ee15f0e5bafb597d29f0318aaeb4 (patch) | |
tree | be1cc374a08ca577ef4144eb7065872af199c499 /lib/Support | |
parent | 2eddf5d5241b54e02b035b40f16ffa1e5effbe19 (diff) | |
download | external_llvm-d86d635d2831ee15f0e5bafb597d29f0318aaeb4.zip external_llvm-d86d635d2831ee15f0e5bafb597d29f0318aaeb4.tar.gz external_llvm-d86d635d2831ee15f0e5bafb597d29f0318aaeb4.tar.bz2 |
Add StringRef::{rfind, rsplit}
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/CMakeLists.txt | 1 | ||||
-rw-r--r-- | lib/Support/StringRef.cpp | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/Support/CMakeLists.txt b/lib/Support/CMakeLists.txt index 4f02397..cd355ff 100644 --- a/lib/Support/CMakeLists.txt +++ b/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/lib/Support/StringRef.cpp b/lib/Support/StringRef.cpp new file mode 100644 index 0000000..4751f06 --- /dev/null +++ b/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; |