aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2013-08-29 12:12:13 +0000
committerAlexander Kornienko <alexfh@google.com>2013-08-29 12:12:13 +0000
commit2f02ded68a114410f11bc2f4e901d0d8e5850de1 (patch)
tree16534fd2ba19e1a1b875c7f88be6870f8572bf20 /include/llvm/ADT
parent4edfa2278aa34876abffe67bfb66c0f92bd597a5 (diff)
downloadexternal_llvm-2f02ded68a114410f11bc2f4e901d0d8e5850de1.zip
external_llvm-2f02ded68a114410f11bc2f4e901d0d8e5850de1.tar.gz
external_llvm-2f02ded68a114410f11bc2f4e901d0d8e5850de1.tar.bz2
isCharInSet refactoring.
Summary: Made UnicodeCharSet a class, perform validity checking inside its constructor instead of each isCharInSet call, use std::binary_search instead of own implementation. This patch comes with a necessary change in clang (sent separately). Reviewers: jordan_rose, klimek Reviewed By: klimek CC: cfe-commits, rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D1534 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/ArrayRef.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/ArrayRef.h b/include/llvm/ADT/ArrayRef.h
index d4152ec..a0b6eff 100644
--- a/include/llvm/ADT/ArrayRef.h
+++ b/include/llvm/ADT/ArrayRef.h
@@ -80,7 +80,7 @@ namespace llvm {
/// Construct an ArrayRef from a C array.
template <size_t N>
- /*implicit*/ ArrayRef(const T (&Arr)[N])
+ /*implicit*/ LLVM_CONSTEXPR ArrayRef(const T (&Arr)[N])
: Data(Arr), Length(N) {}
/// @}