[llvm] r332400 - Move helper classes into anonymous namespaces. NFCI.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Tue May 15 14:26:47 PDT 2018
Author: d0k
Date: Tue May 15 14:26:47 2018
New Revision: 332400
URL: http://llvm.org/viewvc/llvm-project?rev=332400&view=rev
Log:
Move helper classes into anonymous namespaces. NFCI.
Modified:
llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp
llvm/trunk/lib/ObjectYAML/DWARFEmitter.cpp
Modified: llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp?rev=332400&r1=332399&r2=332400&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp Tue May 15 14:26:47 2018
@@ -318,7 +318,7 @@ static bool rescheduleCanonically(unsign
return Changed;
}
-bool propagateLocalCopies(MachineBasicBlock *MBB) {
+static bool propagateLocalCopies(MachineBasicBlock *MBB) {
bool Changed = false;
MachineRegisterInfo &MRI = MBB->getParent()->getRegInfo();
@@ -468,9 +468,8 @@ static void doCandidateWalk(std::vector<
}
}
+namespace {
class NamedVRegCursor {
-
-private:
MachineRegisterInfo &MRI;
unsigned virtualVRegNumber;
@@ -512,6 +511,7 @@ public:
return MRI.createVirtualRegister(RC, OS.str());
}
};
+} // namespace
static std::map<unsigned, unsigned>
GetVRegRenameMap(const std::vector<TypedVReg> &VRegs,
Modified: llvm/trunk/lib/ObjectYAML/DWARFEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ObjectYAML/DWARFEmitter.cpp?rev=332400&r1=332399&r2=332400&view=diff
==============================================================================
--- llvm/trunk/lib/ObjectYAML/DWARFEmitter.cpp (original)
+++ llvm/trunk/lib/ObjectYAML/DWARFEmitter.cpp Tue May 15 14:26:47 2018
@@ -307,6 +307,7 @@ EmitDebugSectionImpl(const DWARFYAML::Da
OutputBuffers[Sec] = MemoryBuffer::getMemBufferCopy(Data);
}
+namespace {
class DIEFixupVisitor : public DWARFYAML::Visitor {
uint64_t Length;
@@ -345,6 +346,7 @@ private:
Length += MBR.getBufferSize();
}
};
+} // namespace
Expected<StringMap<std::unique_ptr<MemoryBuffer>>>
DWARFYAML::EmitDebugSections(StringRef YAMLString, bool ApplyFixups,
More information about the llvm-commits
mailing list