diff options
author | Rui Ueyama <ruiu@google.com> | 2018-01-22 23:27:50 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2018-01-22 23:27:50 +0000 |
commit | 322fcfee34effec55c20a4986f19a3894a132284 (patch) | |
tree | 03e221cbc0dd911869a664e8cfd9e1a8a84b230d /llvm/lib/Support/CommandLine.cpp | |
parent | d161ac9ea6c3bd50485bd17593e9765999796ae8 (diff) | |
download | bcm5719-llvm-322fcfee34effec55c20a4986f19a3894a132284.tar.gz bcm5719-llvm-322fcfee34effec55c20a4986f19a3894a132284.zip |
Revert r322595: Specify inline for isWhitespace in CommandLine.cpp
The original change was made based on a misunderstanding that
-DCMAKE_BUILD_TYPE=RelWithDebugInfo would produce the same executable
as -DCMAKE_BUILD_TYPE=Release modulo debug info. Turned out that's not
true -- it at least disables some optimizations such as function inlining.
llvm-svn: 323161
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 451c3f46036..d95b791972c 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -688,7 +688,7 @@ static bool EatsUnboundedNumberOfValues(const Option *O) { O->getNumOccurrencesFlag() == cl::OneOrMore; } -static inline bool isWhitespace(char C) { +static bool isWhitespace(char C) { return C == ' ' || C == '\t' || C == '\r' || C == '\n'; } |