summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2010-12-19 20:42:43 +0000
committerNick Lewycky <nicholas@mxc.ca>2010-12-19 20:42:43 +0000
commitb71afe82bf922f636eac2851486ef25ce4e780bf (patch)
tree508823e04cf8b882e8a2c8cd674f66a56fd33fbf /llvm/lib/VMCore
parent440b2804ff060b727d6a6488e0c9eccac46e4d6d (diff)
downloadbcm5719-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/VMCore')
-rw-r--r--llvm/lib/VMCore/LLVMContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/LLVMContext.cpp b/llvm/lib/VMCore/LLVMContext.cpp
index 0f51cf224d0..c948320c20e 100644
--- a/llvm/lib/VMCore/LLVMContext.cpp
+++ b/llvm/lib/VMCore/LLVMContext.cpp
@@ -110,12 +110,12 @@ static bool isValidName(StringRef MDName) {
if (MDName.empty())
return false;
- if (!isalpha(MDName[0]))
+ if (!std::isalpha(MDName[0]))
return false;
for (StringRef::iterator I = MDName.begin() + 1, E = MDName.end(); I != E;
++I) {
- if (!isalnum(*I) && *I != '_' && *I != '-' && *I != '.')
+ if (!std::isalnum(*I) && *I != '_' && *I != '-' && *I != '.')
return false;
}
return true;
OpenPOWER on IntegriCloud