[llvm-commits] [llvm] r122099 - /llvm/trunk/lib/VMCore/LLVMContext.cpp
Bob Wilson
bob.wilson at apple.com
Fri Dec 17 15:06:32 PST 2010
Author: bwilson
Date: Fri Dec 17 17:06:32 2010
New Revision: 122099
URL: http://llvm.org/viewvc/llvm-project?rev=122099&view=rev
Log:
Remove trailing whitespace.
Modified:
llvm/trunk/lib/VMCore/LLVMContext.cpp
Modified: llvm/trunk/lib/VMCore/LLVMContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/LLVMContext.cpp?rev=122099&r1=122098&r2=122099&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/LLVMContext.cpp (original)
+++ llvm/trunk/lib/VMCore/LLVMContext.cpp Fri Dec 17 17:06:32 2010
@@ -31,7 +31,7 @@
// 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::
-setInlineAsmDiagnosticHandler(InlineAsmDiagHandlerTy DiagHandler,
+setInlineAsmDiagnosticHandler(InlineAsmDiagHandlerTy DiagHandler,
void *DiagContext) {
pImpl->InlineAsmDiagHandler = DiagHandler;
pImpl->InlineAsmDiagContext = DiagContext;
@@ -93,12 +93,11 @@
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 @@
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 != '.')
More information about the llvm-commits
mailing list