]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - tools/perf/util/c++/clang.h
perf clang: Allow passing CFLAGS to builtin clang
[karo-tx-linux.git] / tools / perf / util / c++ / clang.h
index 90aff0162f1c632cf60af8db1a3432bbb224dde5..b4fc2a96b79d2bb43cddd59f3d86d6b1a787bd5f 100644 (file)
@@ -4,16 +4,20 @@
 #include "llvm/ADT/StringRef.h"
 #include "llvm/IR/LLVMContext.h"
 #include "llvm/IR/Module.h"
+#include "llvm/Option/Option.h"
 #include <memory>
+
 namespace perf {
 
 using namespace llvm;
 
 std::unique_ptr<Module>
-getModuleFromSource(StringRef Name, StringRef Content);
+getModuleFromSource(opt::ArgStringList CFlags,
+                   StringRef Name, StringRef Content);
 
 std::unique_ptr<Module>
-getModuleFromSource(StringRef Path);
+getModuleFromSource(opt::ArgStringList CFlags,
+                   StringRef Path);
 
 }
 #endif