[clang] [llvm] Add source file name for template instantiations in -ftime-trace (PR #98320)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 18 01:15:31 PDT 2024


================
@@ -38,14 +42,24 @@ std::string teardownProfiler() {
 
 // Returns true if code compiles successfully.
 // We only parse AST here. This is enough for constexpr evaluation.
-bool compileFromString(StringRef Code, StringRef Standard, StringRef FileName) {
+bool compileFromString(StringRef Code, StringRef Standard, StringRef File,
+                       llvm::StringMap<StringRef> Headers = {}) {
----------------
usx95 wrote:

Done.

https://github.com/llvm/llvm-project/pull/98320


More information about the cfe-commits mailing list