diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-12-18 14:06:34 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-12-18 14:06:34 +0000 |
commit | d7f9c250df89983bdc44acdf2d5168ec412d1c5a (patch) | |
tree | 0a4a7d6c9de6218b5db43ff8e70bc7d3b9772b48 /llvm/lib/Bitcode/Reader/BitReader.cpp | |
parent | f382b8836adc00deaa411ef74460e8302139b5f5 (diff) | |
download | bcm5719-llvm-d7f9c250df89983bdc44acdf2d5168ec412d1c5a.tar.gz bcm5719-llvm-d7f9c250df89983bdc44acdf2d5168ec412d1c5a.zip |
clang-format to reduce diff in another patch.
llvm-svn: 255999
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitReader.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitReader.cpp b/llvm/lib/Bitcode/Reader/BitReader.cpp index 2d15165dcec..883a5bcdd07 100644 --- a/llvm/lib/Bitcode/Reader/BitReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitReader.cpp @@ -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(LLVMContextRef ContextRef, 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(LLVMContextRef ContextRef, 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(LLVMContextRef ContextRef, *OutM = wrap(ModuleOrErr.get().release()); return 0; - } LLVMBool LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM, |