X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=include%2Fllvm%2FIR%2FFunctionInfo.h;h=264954757cfcefe661f356d47f969b2c660dc076;hp=a8dd2d9249e88af27fd8c1de7c6803d4b2276496;hb=9dd98c0eab67b0fb3e3dc06df97769dabbe9543b;hpb=68eb8a5215e834f4f316c70759ef3504390ece73 diff --git a/include/llvm/IR/FunctionInfo.h b/include/llvm/IR/FunctionInfo.h index a8dd2d9249e..264954757cf 100644 --- a/include/llvm/IR/FunctionInfo.h +++ b/include/llvm/IR/FunctionInfo.h @@ -30,7 +30,7 @@ namespace llvm { /// This is a separate class from FunctionInfo to enable lazy reading of this /// function summary information from the combined index file during imporing. class FunctionSummary { - private: +private: /// \brief Path of module containing function IR, used to locate module when /// importing this function. /// @@ -57,7 +57,7 @@ class FunctionSummary { /// during the initial compile step when the function index is first built. unsigned InstCount; - public: +public: /// Construct a summary object from summary data expected for all /// summary records. FunctionSummary(unsigned NumInsts) : InstCount(NumInsts) {} @@ -90,7 +90,7 @@ class FunctionSummary { /// record. After parsing the associated summary information from the summary /// block the \a FunctionSummary is populated and stored here. class FunctionInfo { - private: +private: /// Function summary information used to help make ThinLTO importing /// decisions. std::unique_ptr Summary; @@ -109,7 +109,7 @@ class FunctionInfo { /// VST records with the summary records. uint64_t BitcodeIndex; - public: +public: /// Constructor used during parsing of VST entries. FunctionInfo(uint64_t FuncOffset) : Summary(nullptr), BitcodeIndex(FuncOffset) {} @@ -157,7 +157,7 @@ typedef StringMap ModulePathStringTableTy; /// Class to hold module path string table and function map, /// and encapsulate methods for operating on them. class FunctionInfoIndex { - private: +private: /// Map from function name to list of function information instances /// for functions of that name (may be duplicates in the COMDAT case, e.g.). FunctionInfoMapTy FunctionMap; @@ -165,7 +165,7 @@ class FunctionInfoIndex { /// Holds strings for combined index, mapping to the corresponding module ID. ModulePathStringTableTy ModulePathStringTable; - public: +public: FunctionInfoIndex() = default; ~FunctionInfoIndex() = default; @@ -190,8 +190,8 @@ class FunctionInfoIndex { } /// Iterator to allow writer to walk through table during emission. - iterator_range::const_iterator> modPathStringEntries() - const { + iterator_range::const_iterator> + modPathStringEntries() const { return llvm::make_range(ModulePathStringTable.begin(), ModulePathStringTable.end()); } @@ -225,6 +225,6 @@ class FunctionInfoIndex { } }; -} // End llvm namespace +} // End llvm namespace #endif