Skip to content

Commit 329010e

Browse files
committed
Revert "[BPF] [BTF] Process FileName with absolute path correctly"
This reverts commit r352939. Some tests failed. Revert to unblock others. llvm-svn: 352941
1 parent dc1e778 commit 329010e

File tree

2 files changed

+1
-84
lines changed

2 files changed

+1
-84
lines changed

llvm/lib/Target/BPF/BTFDebug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ std::string BTFDebug::populateFileContent(const DISubprogram *SP) {
493493
auto File = SP->getFile();
494494
std::string FileName;
495495

496-
if (!File->getFilename().startswith("/") && File->getDirectory().size())
496+
if (File->getDirectory().size())
497497
FileName = File->getDirectory().str() + "/" + File->getFilename().str();
498498
else
499499
FileName = File->getFilename();

llvm/test/CodeGen/BPF/BTF/filename.ll

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)