[llvm] r341294 - [MC] - ConstantPools.cpp: Style consistency, remove redundant braces. NFC.
Kristina Brooks via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 2 20:48:39 PDT 2018
Author: kristina
Date: Sun Sep 2 20:48:39 2018
New Revision: 341294
URL: http://llvm.org/viewvc/llvm-project?rev=341294&view=rev
Log:
[MC] - ConstantPools.cpp: Style consistency, remove redundant braces. NFC.
Remove braces around two, single statement "if" blocks in line with rest
of the file and the general LLVM code style. NFC, testing commit access.
Modified:
llvm/trunk/lib/MC/ConstantPools.cpp
Modified: llvm/trunk/lib/MC/ConstantPools.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ConstantPools.cpp?rev=341294&r1=341293&r2=341294&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ConstantPools.cpp (original)
+++ llvm/trunk/lib/MC/ConstantPools.cpp Sun Sep 2 20:48:39 2018
@@ -97,16 +97,14 @@ void AssemblerConstantPools::emitAll(MCS
void AssemblerConstantPools::emitForCurrentSection(MCStreamer &Streamer) {
MCSection *Section = Streamer.getCurrentSectionOnly();
- if (ConstantPool *CP = getConstantPool(Section)) {
+ if (ConstantPool *CP = getConstantPool(Section))
emitConstantPool(Streamer, Section, *CP);
- }
}
void AssemblerConstantPools::clearCacheForCurrentSection(MCStreamer &Streamer) {
MCSection *Section = Streamer.getCurrentSectionOnly();
- if (ConstantPool *CP = getConstantPool(Section)) {
+ if (ConstantPool *CP = getConstantPool(Section))
CP->clearCache();
- }
}
const MCExpr *AssemblerConstantPools::addEntry(MCStreamer &Streamer,
More information about the llvm-commits
mailing list