diff options
-rw-r--r-- | include/llvm/CodeGen/StackMaps.h | 2 | ||||
-rw-r--r-- | lib/CodeGen/StackMaps.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/StackMaps.h b/include/llvm/CodeGen/StackMaps.h index c981bf4040..5eddbb6525 100644 --- a/include/llvm/CodeGen/StackMaps.h +++ b/include/llvm/CodeGen/StackMaps.h @@ -132,7 +132,7 @@ public: void serializeToStackMapSection(); private: - const char *WSMP = "Stack Maps: "; + static const char *WSMP; typedef SmallVector<Location, 8> LocationVec; typedef SmallVector<LiveOutReg, 8> LiveOutVec; diff --git a/lib/CodeGen/StackMaps.cpp b/lib/CodeGen/StackMaps.cpp index 3c694581ec..1473fc184f 100644 --- a/lib/CodeGen/StackMaps.cpp +++ b/lib/CodeGen/StackMaps.cpp @@ -33,6 +33,8 @@ using namespace llvm; static cl::opt<int> StackMapVersion("stackmap-version", cl::init(1), cl::desc("Specify the stackmap encoding version (default = 1)")); +const char *StackMaps::WSMP = "Stack Maps: "; + PatchPointOpers::PatchPointOpers(const MachineInstr *MI) : MI(MI), HasDef(MI->getOperand(0).isReg() && MI->getOperand(0).isDef() && @@ -472,6 +474,7 @@ void StackMaps::emitCallsiteEntries(MCStreamer &OS, /// Serialize the stackmap data. void StackMaps::serializeToStackMapSection() { + (void) WSMP; // Bail out if there's no stack map data. assert((!CSInfos.empty() || (CSInfos.empty() && ConstPool.empty())) && "Expected empty constant pool too!"); |