[llvm] r255999 - clang-format to reduce diff in another patch.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 18 06:06:35 PST 2015
Author: rafael
Date: Fri Dec 18 08:06:34 2015
New Revision: 255999
URL: http://llvm.org/viewvc/llvm-project?rev=255999&view=rev
Log:
clang-format to reduce diff in another patch.
Modified:
llvm/trunk/lib/Bitcode/Reader/BitReader.cpp
Modified: llvm/trunk/lib/Bitcode/Reader/BitReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitReader.cpp?rev=255999&r1=255998&r2=255999&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitReader.cpp Fri Dec 18 08:06:34 2015
@@ -23,8 +23,8 @@ using namespace llvm;
/* Builds a module from the bitcode in the specified memory buffer, returning a
reference to the module via the OutModule parameter. Returns 0 on success.
Optionally returns a human-readable error message via OutMessage. */
-LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf,
- LLVMModuleRef *OutModule, char **OutMessage) {
+LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule,
+ char **OutMessage) {
return LLVMParseBitcodeInContext(wrap(&getGlobalContext()), MemBuf, OutModule,
OutMessage);
}
@@ -56,7 +56,7 @@ LLVMBool LLVMParseBitcodeInContext(LLVMC
if (ModuleOrErr.getError()) {
if (OutMessage)
*OutMessage = strdup(Message.c_str());
- *OutModule = wrap((Module*)nullptr);
+ *OutModule = wrap((Module *)nullptr);
return 1;
}
@@ -69,8 +69,7 @@ LLVMBool LLVMParseBitcodeInContext(LLVMC
Optionally returns a human-readable error message via OutMessage. */
LLVMBool LLVMGetBitcodeModuleInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
- LLVMModuleRef *OutM,
- char **OutMessage) {
+ LLVMModuleRef *OutM, char **OutMessage) {
LLVMContext &Ctx = *unwrap(ContextRef);
LLVMContext::DiagnosticHandlerTy OldDiagnosticHandler =
Ctx.getDiagnosticHandler();
@@ -95,7 +94,6 @@ LLVMBool LLVMGetBitcodeModuleInContext(L
*OutM = wrap(ModuleOrErr.get().release());
return 0;
-
}
LLVMBool LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM,
More information about the llvm-commits
mailing list