diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-12-19 20:42:43 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-12-19 20:42:43 +0000 |
commit | b71afe82bf922f636eac2851486ef25ce4e780bf (patch) | |
tree | 508823e04cf8b882e8a2c8cd674f66a56fd33fbf /llvm/lib/Target | |
parent | 440b2804ff060b727d6a6488e0c9eccac46e4d6d (diff) | |
download | bcm5719-llvm-b71afe82bf922f636eac2851486ef25ce4e780bf.tar.gz bcm5719-llvm-b71afe82bf922f636eac2851486ef25ce4e780bf.zip |
Add missing std:: prefixes to some calls. C++ doesn't require that <cfoo>
headers provide symbols outside namespace std and the LLVM coding standards
state that we should prefix all of them.
llvm-svn: 122192
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/SubtargetFeature.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/TargetInstrInfo.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/SubtargetFeature.cpp b/llvm/lib/Target/SubtargetFeature.cpp index b35190a369e..ba53d63a91c 100644 --- a/llvm/lib/Target/SubtargetFeature.cpp +++ b/llvm/lib/Target/SubtargetFeature.cpp @@ -162,7 +162,7 @@ static void Help(const SubtargetFeatureKV *CPUTable, size_t CPUTableSize, errs() << "Use +feature to enable a feature, or -feature to disable it.\n" << "For example, llc -mcpu=mycpu -mattr=+feature1,-feature2\n"; - exit(1); + std::exit(1); } //===----------------------------------------------------------------------===// diff --git a/llvm/lib/Target/TargetInstrInfo.cpp b/llvm/lib/Target/TargetInstrInfo.cpp index eca97ab0966..d4986d89ddc 100644 --- a/llvm/lib/Target/TargetInstrInfo.cpp +++ b/llvm/lib/Target/TargetInstrInfo.cpp @@ -164,7 +164,7 @@ unsigned TargetInstrInfo::getInlineAsmLength(const char *Str, for (; *Str; ++Str) { if (*Str == '\n' || *Str == MAI.getSeparatorChar()) atInsnStart = true; - if (atInsnStart && !isspace(*Str)) { + if (atInsnStart && !std::isspace(*Str)) { Length += MAI.getMaxInstLength(); atInsnStart = false; } |