From: Hongtao Yu Date: Wed, 14 Jul 2021 02:48:58 +0000 (-0700) Subject: Revert "[CSSPGO][llvm-profgen] Fix a missing initalization" X-Git-Tag: llvmorg-14-init~1534 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=597e9c61cee39071141f3c8f31f47561d2844196;p=platform%2Fupstream%2Fllvm.git Revert "[CSSPGO][llvm-profgen] Fix a missing initalization" This reverts commit fef5f4456abcb1ea052206db6c232468d70b07f2. --- diff --git a/llvm/tools/llvm-profgen/ProfiledBinary.h b/llvm/tools/llvm-profgen/ProfiledBinary.h index 15a3451..8b456d4 100644 --- a/llvm/tools/llvm-profgen/ProfiledBinary.h +++ b/llvm/tools/llvm-profgen/ProfiledBinary.h @@ -5,7 +5,7 @@ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// -#pragma clang optimize off + #ifndef LLVM_TOOLS_LLVM_PROFGEN_PROFILEDBINARY_H #define LLVM_TOOLS_LLVM_PROFGEN_PROFILEDBINARY_H @@ -100,7 +100,7 @@ class ProfiledBinary { // The target triple. Triple TheTriple; // The runtime base address that the first executable segment is loaded at. - uint64_t BaseAddress = 0; + uint64_t BaseAddress; // The preferred load address of each executable segment. std::vector PreferredTextSegmentAddresses; // The file offset of each executable segment. @@ -190,7 +190,7 @@ public: StringRef getName() const { return llvm::sys::path::filename(Path); } uint64_t getBaseAddress() const { return BaseAddress; } void setBaseAddress(uint64_t Address) { BaseAddress = Address; } - + // Return the preferred load address for the first executable segment. uint64_t getPreferredBaseAddress() const { return PreferredTextSegmentAddresses[0]; } // Return the file offset for the first executable segment.