summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lib/MC/ConstantPools.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2019-06-23 21:36:31 +0000
committerpatrick <patrick@openbsd.org>2019-06-23 21:36:31 +0000
commit23f101f37937a1bd4a29726cab2f76e0fb038b35 (patch)
treef7da7d6b32c2e07114da399150bfa88d72187012 /gnu/llvm/lib/MC/ConstantPools.cpp
parentsort previous; ok deraadt (diff)
downloadwireguard-openbsd-23f101f37937a1bd4a29726cab2f76e0fb038b35.tar.xz
wireguard-openbsd-23f101f37937a1bd4a29726cab2f76e0fb038b35.zip
Import LLVM 8.0.0 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/lib/MC/ConstantPools.cpp')
-rw-r--r--gnu/llvm/lib/MC/ConstantPools.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/gnu/llvm/lib/MC/ConstantPools.cpp b/gnu/llvm/lib/MC/ConstantPools.cpp
index ca5440237e4..18277a22564 100644
--- a/gnu/llvm/lib/MC/ConstantPools.cpp
+++ b/gnu/llvm/lib/MC/ConstantPools.cpp
@@ -97,16 +97,14 @@ void AssemblerConstantPools::emitAll(MCStreamer &Streamer) {
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,