Move helper classes into an anonymous namespace. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Oct 2015 21:20:26 +0000 (21:20 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Oct 2015 21:20:26 +0000 (21:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249356 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/WinException.cpp

index 87437a1fe074f5182a00188024c68f9397477508..7764a6e716e87f439bbab269bb2c5b4ff8e107f1 100644 (file)
@@ -292,6 +292,7 @@ const MCExpr *WinException::getLabelPlusOne(MCSymbol *Label) {
                                  Asm->OutContext);
 }
 
+namespace {
 /// Information describing an invoke range.
 struct InvokeRange {
   MCSymbol *BeginLabel = nullptr;
@@ -329,6 +330,7 @@ private:
   MachineBasicBlock::const_iterator MBBIEnd;
   InvokeRange CurRange;
 };
+} // end anonymous namespace
 
 /// Invoke label range iteration logic. Increment MBBI until we find the next
 /// EH_LABEL pair, and then update MBBI to point after the end label.