forked from OSchip/llvm-project
Move classes defined in a cpp file into an anonymous namespace.
No functionality change intended. llvm-svn: 259883
This commit is contained in:
parent
9a3bd23668
commit
85c824f131
|
@ -306,6 +306,7 @@ StringRef InstrProfSymtab::getFuncName(uint64_t Pointer, size_t Size) {
|
||||||
return Data.substr(Pointer - Address, Size);
|
return Data.substr(Pointer - Address, Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace {
|
||||||
struct CovMapFuncRecordReader {
|
struct CovMapFuncRecordReader {
|
||||||
// The interface to read coverage mapping function records for
|
// The interface to read coverage mapping function records for
|
||||||
// a module. \p Buf is a reference to the buffer pointer pointing
|
// a module. \p Buf is a reference to the buffer pointer pointing
|
||||||
|
@ -413,6 +414,7 @@ public:
|
||||||
return std::error_code();
|
return std::error_code();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
} // end anonymous namespace
|
||||||
|
|
||||||
template <class IntPtrT, support::endianness Endian>
|
template <class IntPtrT, support::endianness Endian>
|
||||||
std::unique_ptr<CovMapFuncRecordReader> CovMapFuncRecordReader::get(
|
std::unique_ptr<CovMapFuncRecordReader> CovMapFuncRecordReader::get(
|
||||||
|
|
|
@ -71,6 +71,7 @@ INITIALIZE_PASS_DEPENDENCY(MachineDominanceFrontier)
|
||||||
INITIALIZE_PASS_END(HexagonRDFOpt, "rdfopt", "Hexagon RDF opt", false, false)
|
INITIALIZE_PASS_END(HexagonRDFOpt, "rdfopt", "Hexagon RDF opt", false, false)
|
||||||
|
|
||||||
|
|
||||||
|
namespace {
|
||||||
struct HexagonCP : public CopyPropagation {
|
struct HexagonCP : public CopyPropagation {
|
||||||
HexagonCP(DataFlowGraph &G) : CopyPropagation(G) {}
|
HexagonCP(DataFlowGraph &G) : CopyPropagation(G) {}
|
||||||
bool interpretAsCopy(const MachineInstr *MI, EqualityMap &EM) override;
|
bool interpretAsCopy(const MachineInstr *MI, EqualityMap &EM) override;
|
||||||
|
@ -85,6 +86,7 @@ struct HexagonDCE : public DeadCodeElimination {
|
||||||
|
|
||||||
bool run();
|
bool run();
|
||||||
};
|
};
|
||||||
|
} // end anonymous namespace
|
||||||
|
|
||||||
|
|
||||||
bool HexagonCP::interpretAsCopy(const MachineInstr *MI, EqualityMap &EM) {
|
bool HexagonCP::interpretAsCopy(const MachineInstr *MI, EqualityMap &EM) {
|
||||||
|
|
Loading…
Reference in New Issue