From 1e5aca4bb739c7613aea606683793a69b12ece1c Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Fri, 17 Dec 2010 23:06:32 +0000 Subject: [PATCH] Remove trailing whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122099 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/LLVMContext.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp index 41806999ba..0f51cf224d 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 != '.') -- 2.11.4.GIT