summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CoverageMappingGen.h
diff options
context:
space:
mode:
authorKadir Cetinkaya <kadircet@google.com>2019-10-10 12:20:11 +0000
committerKadir Cetinkaya <kadircet@google.com>2019-10-10 12:20:11 +0000
commit62808631acceaa8b78f8ab9b407eb6b943ff5f77 (patch)
tree7ed3f9665369500ddef322402f52cefe547334d8 /clang/lib/CodeGen/CoverageMappingGen.h
parent44506cd7f2b0758d37611d405beb6eb1f6f90f17 (diff)
downloadbcm5719-llvm-62808631acceaa8b78f8ab9b407eb6b943ff5f77.tar.gz
bcm5719-llvm-62808631acceaa8b78f8ab9b407eb6b943ff5f77.zip
Revert "Use -fdebug-compilation-dir to form absolute paths in coverage mappings"
This reverts commit f6777964bde28c349d3e289ea37ecf5f5eeedbc4. Because the absolute path check relies on temporary path containing "clang", "test" and "CoverageMapping" as a subsequence, which is not necessarily true on all systems(breaks internal integrates). Wanted to fix it by checking for a leading "/" instead, but then noticed that it would break windows tests, so leaving it to the author instead. llvm-svn: 374324
Diffstat (limited to 'clang/lib/CodeGen/CoverageMappingGen.h')
-rw-r--r--clang/lib/CodeGen/CoverageMappingGen.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CoverageMappingGen.h b/clang/lib/CodeGen/CoverageMappingGen.h
index 2bdc00e2566..3bf51f59047 100644
--- a/clang/lib/CodeGen/CoverageMappingGen.h
+++ b/clang/lib/CodeGen/CoverageMappingGen.h
@@ -54,14 +54,10 @@ class CoverageMappingModuleGen {
std::vector<llvm::Constant *> FunctionNames;
llvm::StructType *FunctionRecordTy;
std::vector<std::string> CoverageMappings;
- SmallString<256> CWD;
-
- /// Make the filename absolute, remove dots, and normalize slashes to local
- /// path style.
- std::string normalizeFilename(StringRef Filename);
public:
- CoverageMappingModuleGen(CodeGenModule &CGM, CoverageSourceInfo &SourceInfo);
+ CoverageMappingModuleGen(CodeGenModule &CGM, CoverageSourceInfo &SourceInfo)
+ : CGM(CGM), SourceInfo(SourceInfo), FunctionRecordTy(nullptr) {}
CoverageSourceInfo &getSourceInfo() const {
return SourceInfo;
OpenPOWER on IntegriCloud