summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-09-21 18:02:24 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-09-21 18:02:24 +0000
commitbe58ff82325e8892dc8199f2ca0acba887507895 (patch)
tree7e9b3481bd7327fa52d5801ad345262901693ed0 /llvm
parent82a13bf36cf26cc69bb0c0bd3f72071539b9d729 (diff)
downloadbcm5719-llvm-be58ff82325e8892dc8199f2ca0acba887507895.tar.gz
bcm5719-llvm-be58ff82325e8892dc8199f2ca0acba887507895.zip
[ADT] Remove a couple of the always inline attributes I added.
Based on conversations with Justin and a few others, these constructors are really useful to have in the executable so that you can call them from the debugger. After some measurements, these *particular* calls aren't so problematic as to make them a good tradeoff for always inline. Please let me know if there are other functions really needed for debugging. The always inline attribute is a hack that we should only really employ when it doesn't hurt. llvm-svn: 248188
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ADT/StringRef.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/include/llvm/ADT/StringRef.h b/llvm/include/llvm/ADT/StringRef.h
index bc80946a9ea..350032b8c4e 100644
--- a/llvm/include/llvm/ADT/StringRef.h
+++ b/llvm/include/llvm/ADT/StringRef.h
@@ -65,11 +65,9 @@ namespace llvm {
/// @{
/// Construct an empty string ref.
- LLVM_ATTRIBUTE_ALWAYS_INLINE
/*implicit*/ StringRef() : Data(nullptr), Length(0) {}
/// Construct a string ref from a cstring.
- LLVM_ATTRIBUTE_ALWAYS_INLINE
/*implicit*/ StringRef(const char *Str)
: Data(Str) {
assert(Str && "StringRef cannot be built from a NULL argument");
OpenPOWER on IntegriCloud