projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a915f24
)
[yaml2obj] Fix build. Apparently I've gotten too familiar with C++11.
author
Michael J. Spencer
<bigcheesegs@gmail.com>
Thu, 2 Aug 2012 19:36:30 +0000
(19:36 +0000)
committer
Michael J. Spencer
<bigcheesegs@gmail.com>
Thu, 2 Aug 2012 19:36:30 +0000
(19:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161206
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/yaml2obj/yaml2obj.cpp
patch
|
blob
|
history
diff --git
a/utils/yaml2obj/yaml2obj.cpp
b/utils/yaml2obj/yaml2obj.cpp
index d21336f5fd25347d54aa24bd7a3052a94572f6d7..eecf574348ff5bdfe957636ef3e6e0818e387dca 100644
(file)
--- a/
utils/yaml2obj/yaml2obj.cpp
+++ b/
utils/yaml2obj/yaml2obj.cpp
@@
-39,7
+39,7
@@
static cl::opt<std::string>
Input(cl::Positional, cl::desc("<input>"), cl::init("-"));
template<class T>
-typename
std::enable_if
<std::numeric_limits<T>::is_integer, bool>::type
+typename
llvm::enable_if_c
<std::numeric_limits<T>::is_integer, bool>::type
getAs(const llvm::yaml::ScalarNode *SN, T &Result) {
SmallString<4> Storage;
StringRef Value = SN->getValue(Storage);