[llvm] 114f3e5 - Fix a build failure with perf: Add a missing include to llvm/Support/ManagedStatic.h

Sylvestre Ledru via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 16 05:44:17 PST 2019


Author: Sylvestre Ledru
Date: 2019-11-16T14:43:46+01:00
New Revision: 114f3e5b08afe9a9034d1a09aa9a880afeed9091

URL: https://github.com/llvm/llvm-project/commit/114f3e5b08afe9a9034d1a09aa9a880afeed9091
DIFF: https://github.com/llvm/llvm-project/commit/114f3e5b08afe9a9034d1a09aa9a880afeed9091.diff

LOG: Fix a build failure with perf: Add a missing include to llvm/Support/ManagedStatic.h

It was failing with
PerfJITEventListener.cpp:489:7: error: 'ManagedStatic' in namespace 'llvm' does not name a template type
 llvm::ManagedStatic<PerfJITEventListener> PerfListener;

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
index 184388dc4d7a..cc196df3b2fa 100644
--- a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
+++ b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
@@ -24,6 +24,7 @@
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/Errno.h"
 #include "llvm/Support/FileSystem.h"
+#include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Mutex.h"
 #include "llvm/Support/Path.h"


        


More information about the llvm-commits mailing list