[compiler-rt] r234491 - Use error_t rather than int in a couple of places where we handle files
Timur Iskhodzhanov
timurrrr at google.com
Thu Apr 9 07:49:54 PDT 2015
Author: timurrrr
Date: Thu Apr 9 09:49:53 2015
New Revision: 234491
URL: http://llvm.org/viewvc/llvm-project?rev=234491&view=rev
Log:
Use error_t rather than int in a couple of places where we handle files
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_mapping_libcdep.cc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_flags.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_mapping_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_mapping_libcdep.cc?rev=234491&r1=234490&r2=234491&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_mapping_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_mapping_libcdep.cc Thu Apr 9 09:49:53 2015
@@ -95,7 +95,7 @@ void CovUpdateMapping(const char *covera
}
}
- int err;
+ error_t err;
InternalScopedString tmp_path(64 + internal_strlen(coverage_dir));
uptr res = internal_snprintf((char *)tmp_path.data(), tmp_path.size(),
"%s/%zd.sancov.map.tmp", coverage_dir,
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_flags.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_flags.cc?rev=234491&r1=234490&r2=234491&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_flags.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_flags.cc Thu Apr 9 09:49:53 2015
@@ -54,7 +54,7 @@ class FlagHandlerInclude : public FlagHa
bool Parse(const char *value) final {
char *data;
uptr data_mapped_size;
- int err;
+ error_t err;
uptr len =
ReadFileToBuffer(value, &data, &data_mapped_size,
Max(kMaxIncludeSize, GetPageSizeCached()), &err);
More information about the llvm-commits
mailing list