[PATCH] D99580: [CLANG] [DebugInfo] Convert File name to native format
kamlesh kumar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 30 23:15:27 PDT 2021
kamleshbhalui updated this revision to Diff 334356.
kamleshbhalui added a comment.
clang formatting the patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99580/new/
https://reviews.llvm.org/D99580
Files:
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/linetable-fnbegin.cpp
Index: clang/test/CodeGenCXX/linetable-fnbegin.cpp
===================================================================
--- clang/test/CodeGenCXX/linetable-fnbegin.cpp
+++ clang/test/CodeGenCXX/linetable-fnbegin.cpp
@@ -12,7 +12,6 @@
// We shouldn't need a lexical block for this function.
// CHECK: [[DBG]] = !DILocation(line: 23, column: 3, scope: [[SP]])
-
# 1 "./template.h" 1
template <typename T>
class Foo {
Index: clang/lib/CodeGen/CGDebugInfo.cpp
===================================================================
--- clang/lib/CodeGen/CGDebugInfo.cpp
+++ clang/lib/CodeGen/CGDebugInfo.cpp
@@ -627,9 +627,9 @@
llvm::sys::path::native(NativeMainFileName);
MainFileName = (std::string)NativeMainFileName.str();
- llvm::DIFile *CUFile = DBuilder.createFile(
- MainFileName, remapDIPath(getCurrentDirname()), CSInfo,
- getSource(SM, SM.getMainFileID()));
+ llvm::DIFile *CUFile =
+ DBuilder.createFile(MainFileName, remapDIPath(getCurrentDirname()),
+ CSInfo, getSource(SM, SM.getMainFileID()));
StringRef Sysroot, SDK;
if (CGM.getCodeGenOpts().getDebuggerTuning() == llvm::DebuggerKind::LLDB) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99580.334356.patch
Type: text/x-patch
Size: 1166 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210331/e91dca0b/attachment.bin>
More information about the cfe-commits
mailing list