clang.h 357 B

12345678910111213141516171819
  1. #ifndef PERF_UTIL_CLANG_H
  2. #define PERF_UTIL_CLANG_H
  3. #include "llvm/ADT/StringRef.h"
  4. #include "llvm/IR/LLVMContext.h"
  5. #include "llvm/IR/Module.h"
  6. #include <memory>
  7. namespace perf {
  8. using namespace llvm;
  9. std::unique_ptr<Module>
  10. getModuleFromSource(StringRef Name, StringRef Content);
  11. std::unique_ptr<Module>
  12. getModuleFromSource(StringRef Path);
  13. }
  14. #endif