diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-12-17 23:06:32 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-12-17 23:06:32 +0000 |
commit | 26156456dd30e93456c2e3c154c48678dfea639b (patch) | |
tree | db1bbfc12e1cc4b9b3386402195aa881ebc4a255 /lib/VMCore | |
parent | b65c175d32510d32aa556d1db5e6782b411d192c (diff) | |
download | external_llvm-26156456dd30e93456c2e3c154c48678dfea639b.zip external_llvm-26156456dd30e93456c2e3c154c48678dfea639b.tar.gz external_llvm-26156456dd30e93456c2e3c154c48678dfea639b.tar.bz2 |
Remove trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122099 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/LLVMContext.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp index 4180699..0f51cf2 100644 --- a/lib/VMCore/LLVMContext.cpp +++ b/lib/VMCore/LLVMContext.cpp @@ -31,7 +31,7 @@ LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) { // Create the fixed metadata kinds. This is done in the same order as the // MD_* enum values so that they correspond. - // Create the 'dbg' metadata kind. + // Create the 'dbg' metadata kind. unsigned DbgID = getMDKindID("dbg"); assert(DbgID == MD_dbg && "dbg kind id drifted"); (void)DbgID; @@ -54,7 +54,7 @@ void LLVMContext::removeModule(Module *M) { //===----------------------------------------------------------------------===// void LLVMContext:: -setInlineAsmDiagnosticHandler(InlineAsmDiagHandlerTy DiagHandler, +setInlineAsmDiagnosticHandler(InlineAsmDiagHandlerTy DiagHandler, void *DiagContext) { pImpl->InlineAsmDiagHandler = DiagHandler; pImpl->InlineAsmDiagContext = DiagContext; @@ -93,12 +93,11 @@ void LLVMContext::emitError(unsigned LocCookie, StringRef ErrorStr) { errs() << "error: " << ErrorStr << "\n"; exit(1); } - + // If we do have an error handler, we can report the error and keep going. SMDiagnostic Diag("", "error: " + ErrorStr.str()); - + pImpl->InlineAsmDiagHandler(Diag, pImpl->InlineAsmDiagContext, LocCookie); - } //===----------------------------------------------------------------------===// @@ -110,10 +109,10 @@ void LLVMContext::emitError(unsigned LocCookie, StringRef ErrorStr) { static bool isValidName(StringRef MDName) { if (MDName.empty()) return false; - + if (!isalpha(MDName[0])) return false; - + for (StringRef::iterator I = MDName.begin() + 1, E = MDName.end(); I != E; ++I) { if (!isalnum(*I) && *I != '_' && *I != '-' && *I != '.') |