aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/InstrProfReader.cpp
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2015-11-06 07:54:21 +0000
committerXinliang David Li <davidxl@google.com>2015-11-06 07:54:21 +0000
commit6aa216c21c06d098d89543879e4aa0e35a687bd0 (patch)
tree6635a0ffcedd449a23c0826d122011ec1893d6b4 /llvm/lib/ProfileData/InstrProfReader.cpp
parent15cd9ffd1e88af8ad3a9829d77c2a25b8587fc90 (diff)
downloadllvm-6aa216c21c06d098d89543879e4aa0e35a687bd0.zip
llvm-6aa216c21c06d098d89543879e4aa0e35a687bd0.tar.gz
llvm-6aa216c21c06d098d89543879e4aa0e35a687bd0.tar.bz2
Code style fix (caused by wrongly default clang-format style) (NFC)
llvm-svn: 252276
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfReader.cpp')
-rw-r--r--llvm/lib/ProfileData/InstrProfReader.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp
index 58dbeef..66fd961 100644
--- a/llvm/lib/ProfileData/InstrProfReader.cpp
+++ b/llvm/lib/ProfileData/InstrProfReader.cpp
@@ -483,8 +483,9 @@ std::error_code IndexedInstrProfReader::readHeader() {
return success();
}
-ErrorOr<InstrProfRecord> IndexedInstrProfReader::getInstrProfRecord(
- StringRef FuncName, uint64_t FuncHash) {
+ErrorOr<InstrProfRecord>
+IndexedInstrProfReader::getInstrProfRecord(StringRef FuncName,
+ uint64_t FuncHash) {
ArrayRef<InstrProfRecord> Data;
std::error_code EC = Index.getRecords(FuncName, Data);
if (EC != instrprof_error::success) return EC;
@@ -498,10 +499,12 @@ ErrorOr<InstrProfRecord> IndexedInstrProfReader::getInstrProfRecord(
return error(instrprof_error::hash_mismatch);
}
-std::error_code IndexedInstrProfReader::getFunctionCounts(
- StringRef FuncName, uint64_t FuncHash, std::vector<uint64_t> &Counts) {
+std::error_code
+IndexedInstrProfReader::getFunctionCounts(StringRef FuncName, uint64_t FuncHash,
+ std::vector<uint64_t> &Counts) {
ErrorOr<InstrProfRecord> Record = getInstrProfRecord(FuncName, FuncHash);
- if (std::error_code EC = Record.getError()) return EC;
+ if (std::error_code EC = Record.getError())
+ return EC;
Counts = Record.get().Counts;
return success();