[llvm] 17326eb - [ObjectYAML][DWARF] Format codes. NFC.
Xing GUO via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 25 06:49:01 PDT 2020
Author: Xing GUO
Date: 2020-06-25T21:53:06+08:00
New Revision: 17326ebbd6cc519e0009fef2df0f7f60b89b9831
URL: https://github.com/llvm/llvm-project/commit/17326ebbd6cc519e0009fef2df0f7f60b89b9831
DIFF: https://github.com/llvm/llvm-project/commit/17326ebbd6cc519e0009fef2df0f7f60b89b9831.diff
LOG: [ObjectYAML][DWARF] Format codes. NFC.
Added:
Modified:
llvm/lib/ObjectYAML/DWARFEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ObjectYAML/DWARFEmitter.cpp b/llvm/lib/ObjectYAML/DWARFEmitter.cpp
index 4f8fa7397136..8a938d321180 100644
--- a/llvm/lib/ObjectYAML/DWARFEmitter.cpp
+++ b/llvm/lib/ObjectYAML/DWARFEmitter.cpp
@@ -209,11 +209,11 @@ class DumpVisitor : public DWARFYAML::ConstVisitor {
void onStartCompileUnit(const DWARFYAML::Unit &CU) override {
writeInitialLength(CU.Length, OS, DebugInfo.IsLittleEndian);
writeInteger((uint16_t)CU.Version, OS, DebugInfo.IsLittleEndian);
- if(CU.Version >= 5) {
+ if (CU.Version >= 5) {
writeInteger((uint8_t)CU.Type, OS, DebugInfo.IsLittleEndian);
writeInteger((uint8_t)CU.AddrSize, OS, DebugInfo.IsLittleEndian);
writeInteger((uint32_t)CU.AbbrOffset, OS, DebugInfo.IsLittleEndian);
- }else {
+ } else {
writeInteger((uint32_t)CU.AbbrOffset, OS, DebugInfo.IsLittleEndian);
writeInteger((uint8_t)CU.AddrSize, OS, DebugInfo.IsLittleEndian);
}
More information about the llvm-commits
mailing list