llvm.org GIT mirror llvm / 2615645
Remove trailing whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122099 91177308-0d34-0410-b5e6-96231b3b80d8 Bob Wilson 9 years ago
1 changed file(s) with 6 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
3030 // Create the fixed metadata kinds. This is done in the same order as the
3131 // MD_* enum values so that they correspond.
3232
33 // Create the 'dbg' metadata kind.
33 // Create the 'dbg' metadata kind.
3434 unsigned DbgID = getMDKindID("dbg");
3535 assert(DbgID == MD_dbg && "dbg kind id drifted"); (void)DbgID;
3636
5353 //===----------------------------------------------------------------------===//
5454
5555 void LLVMContext::
56 setInlineAsmDiagnosticHandler(InlineAsmDiagHandlerTy DiagHandler,
56 setInlineAsmDiagnosticHandler(InlineAsmDiagHandlerTy DiagHandler,
5757 void *DiagContext) {
5858 pImpl->InlineAsmDiagHandler = DiagHandler;
5959 pImpl->InlineAsmDiagContext = DiagContext;
9292 errs() << "error: " << ErrorStr << "\n";
9393 exit(1);
9494 }
95
95
9696 // If we do have an error handler, we can report the error and keep going.
9797 SMDiagnostic Diag("", "error: " + ErrorStr.str());
98
98
9999 pImpl->InlineAsmDiagHandler(Diag, pImpl->InlineAsmDiagContext, LocCookie);
100
101100 }
102101
103102 //===----------------------------------------------------------------------===//
109108 static bool isValidName(StringRef MDName) {
110109 if (MDName.empty())
111110 return false;
112
111
113112 if (!isalpha(MDName[0]))
114113 return false;
115
114
116115 for (StringRef::iterator I = MDName.begin() + 1, E = MDName.end(); I != E;
117116 ++I) {
118117 if (!isalnum(*I) && *I != '_' && *I != '-' && *I != '.')