From 4498168753db4b73ce4424635919fed4d128f504 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 16 Sep 2009 22:38:48 +0000 Subject: Add StringRef::{rfind, rsplit} llvm-svn: 82087 --- llvm/lib/Support/CMakeLists.txt | 1 + llvm/lib/Support/StringRef.cpp | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 llvm/lib/Support/StringRef.cpp (limited to 'llvm/lib/Support') 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; -- cgit v1.2.3