/openbsd-current/gnu/llvm/llvm/lib/Support/ |
H A D | FileOutputBuffer.cpp | 97 std::error_code EC; variable 98 if (auto EC = 100 return errorCodeToError(EC); 116 std::error_code EC; local 118 Size, nullptr, sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC); 119 if (EC) 120 return errorCodeToError(EC); 132 if (auto EC = fs::resize_file_before_mapping_readwrite(File.FD, Size)) { 134 return errorCodeToError(EC); 138 std::error_code EC; local [all...] |
H A D | LockFileManager.cpp | 163 if (std::error_code EC = sys::fs::make_absolute(this->FileName)) { 166 setError(EC, S); 181 if (std::error_code EC = sys::fs::createUniqueFile( 185 setError(EC, S); 192 if (auto EC = getHostID(HostID)) { 193 setError(EC, "failed to get host id"); 218 std::error_code EC = local 220 if (!EC) { 225 if (EC != errc::file_exists) { 229 setError(EC, OS [all...] |
H A D | Path.cpp | 179 std::error_code EC; local 185 EC = sys::fs::openFileForReadWrite(Twine(ResultPath.begin()), ResultFD, 187 if (EC) { 190 if (EC == errc::file_exists || EC == errc::permission_denied) 192 return EC; 199 EC = sys::fs::access(ResultPath.begin(), sys::fs::AccessMode::Exist); 200 if (EC == errc::no_such_file_or_directory) 202 if (EC) 203 return EC; [all...] |
H A D | CodeGenCoverage.cpp | 90 std::error_code EC; local 93 std::make_unique<ToolOutputFile>(CoverageFilename, EC, OpenFlags); 94 if (EC)
|
H A D | raw_ostream.cpp | 572 static int getFD(StringRef Filename, std::error_code &EC, argument 581 EC = std::error_code(); 589 EC = sys::fs::openFileForReadWrite(Filename, FD, Disp, Flags); 591 EC = sys::fs::openFileForWrite(Filename, FD, Disp, Flags); 592 if (EC) 598 raw_fd_ostream::raw_fd_ostream(StringRef Filename, std::error_code &EC) argument 599 : raw_fd_ostream(Filename, EC, sys::fs::CD_CreateAlways, sys::fs::FA_Write, 602 raw_fd_ostream::raw_fd_ostream(StringRef Filename, std::error_code &EC, argument 604 : raw_fd_ostream(Filename, EC, Disp, sys::fs::FA_Write, sys::fs::OF_None) {} 606 raw_fd_ostream::raw_fd_ostream(StringRef Filename, std::error_code &EC, argument 611 raw_fd_ostream(StringRef Filename, std::error_code &EC, sys::fs::OpenFlags Flags) argument 616 raw_fd_ostream(StringRef Filename, std::error_code &EC, sys::fs::CreationDisposition Disp, sys::fs::FileAccess Access, sys::fs::OpenFlags Flags) argument 652 std::error_code EC = status(FD, Status); local 878 std::error_code EC = sys::fs::lockFile(FD); local 886 std::error_code EC = sys::fs::tryLockFile(FD, Timeout.getDuration()); local 900 std::error_code EC; local 922 raw_fd_stream(StringRef Filename, std::error_code &EC) argument [all...] |
/openbsd-current/gnu/llvm/llvm/include/llvm/Support/ |
H A D | BinaryStreamReader.h | 73 if (auto EC = readBytes(Bytes, sizeof(T))) 74 return EC; 86 if (auto EC = readInteger(N)) 87 return EC; 164 if (auto EC = readBytes(Buffer, sizeof(T))) 165 return EC; 191 if (auto EC = readBytes(Bytes, NumElements * sizeof(T))) 192 return EC; 213 if (auto EC = readStreamRef(S, Size)) 214 return EC; [all...] |
/openbsd-current/gnu/llvm/llvm/lib/DebugInfo/PDB/Native/ |
H A D | TpiStreamBuilder.cpp | 144 if (auto EC = Msf.setStreamSize(Idx, Length)) 145 return EC; 174 if (auto EC = finalize()) 175 return EC; 181 if (auto EC = Writer.writeObject(*Header)) 182 return EC; 190 if (auto EC = Writer.writeBytes(Rec)) 191 return EC; 199 if (auto EC = HW.writeStreamRef(*HashValueStream)) 200 return EC; [all...] |
H A D | TpiStream.cpp | 70 if (auto EC = 72 return EC; 75 if (auto EC = 77 return EC; 97 if (auto EC = HSR.readArray(HashValues, NumHashValues)) 98 return EC; 103 if (auto EC = HSR.readArray(TypeIndexOffsets, NumTypeIndexOffsets)) 104 return EC; 108 if (auto EC = HashAdjusters.load(HSR)) 109 return EC; [all...] |
H A D | GSIStreamBuilder.cpp | 138 if (auto EC = Writer.writeObject(Header)) 139 return EC; 141 if (auto EC = Writer.writeArray(ArrayRef(HashRecords))) 142 return EC; 143 if (auto EC = Writer.writeArray(ArrayRef(HashBitmap))) 144 return EC; 145 if (auto EC = Writer.writeArray(ArrayRef(HashBuckets))) 146 return EC; 409 if (auto EC = writePublics(Writer, Publics)) 410 return EC; [all...] |
/openbsd-current/gnu/llvm/llvm/lib/CodeGen/ |
H A D | MachineCFGPrinter.cpp | 45 std::error_code EC; local 46 raw_fd_ostream File(Filename, EC, sys::fs::OF_Text); 50 if (!EC)
|
H A D | LowLevelType.cpp | 22 auto EC = VTy->getElementCount(); local 24 if (EC.isScalar()) 26 return LLT::vector(EC, ScalarTy);
|
/openbsd-current/gnu/llvm/llvm/tools/llvm-pdbutil/ |
H A D | YAMLOutputStyle.cpp | 49 if (auto EC = dumpFileHeaders()) 50 return EC; 52 if (auto EC = dumpStreamMetadata()) 53 return EC; 55 if (auto EC = dumpStreamDirectory()) 56 return EC; 58 if (auto EC = dumpStringTable()) 59 return EC; 61 if (auto EC = dumpPDBStream()) 62 return EC; [all...] |
/openbsd-current/gnu/llvm/llvm/tools/llvm-sim/ |
H A D | llvm-sim.cpp | 65 std::error_code EC; local 67 new ToolOutputFile(FilePath, EC, sys::fs::OF_None)); 68 if (EC) 69 return EC; 105 return EC;
|
/openbsd-current/gnu/llvm/llvm/lib/IR/ |
H A D | PrintPasses.cpp | 163 std::error_code EC = sys::fs::remove(FileName[I]); local 164 if (EC) 165 RC = EC; 175 std::error_code EC; local 180 EC = sys::fs::createTemporaryFile("tmpfile", "txt", FD[I], SV); 181 if (EC) 186 EC = sys::fs::openFileForWrite(FileName[I], FD[I]); 187 if (EC) 191 EC = make_error_code(errc::io_error); 197 if (EC [all...] |
/openbsd-current/gnu/llvm/clang/lib/Frontend/ |
H A D | ModuleDependencyCollector.cpp | 155 std::error_code EC; local 158 llvm::raw_fd_ostream OS(YAMLPath, EC, llvm::sys::fs::OF_TextWithCRLF); 159 if (EC) { 188 if (std::error_code EC = fs::create_directories(path::parent_path(CacheDst), 190 return EC; 191 if (std::error_code EC = fs::copy_file(Paths.CopyFrom, CacheDst)) 192 return EC;
|
/openbsd-current/gnu/llvm/clang/lib/Sema/ |
H A D | SemaAccess.cpp | 114 // We want to add canonical declarations to the EC lists for 421 const EffectiveContext &EC, 423 if (EC.includesClass(Friend)) 426 if (EC.isDependent()) { 427 for (const CXXRecordDecl *Context : EC.Records) { 437 const EffectiveContext &EC, 440 return MatchesFriend(S, EC, cast<CXXRecordDecl>(RT->getDecl())); 452 const EffectiveContext &EC, 459 I = EC.Records.begin(), E = EC 420 MatchesFriend(Sema &S, const EffectiveContext &EC, const CXXRecordDecl *Friend) argument 436 MatchesFriend(Sema &S, const EffectiveContext &EC, CanQualType Friend) argument 451 MatchesFriend(Sema &S, const EffectiveContext &EC, ClassTemplateDecl *Friend) argument 504 MatchesFriend(Sema &S, const EffectiveContext &EC, FunctionDecl *Friend) argument 523 MatchesFriend(Sema &S, const EffectiveContext &EC, FunctionTemplateDecl *Friend) argument 553 MatchesFriend(Sema &S, const EffectiveContext &EC, FriendDecl *FriendD) argument 582 GetFriendKind(Sema &S, const EffectiveContext &EC, const CXXRecordDecl *Class) argument 612 const EffectiveContext &EC; member in struct:__anon745::ProtectedFriendContext 620 ProtectedFriendContext(Sema &S, const EffectiveContext &EC, const CXXRecordDecl *InstanceContext, const CXXRecordDecl *NamingClass) argument 723 GetProtectedFriendKind(Sema &S, const EffectiveContext &EC, const CXXRecordDecl *InstanceContext, const CXXRecordDecl *NamingClass) argument 741 HasAccess(Sema &S, const EffectiveContext &EC, const CXXRecordDecl *NamingClass, AccessSpecifier Access, const AccessTarget &Target) argument 939 FindBestPath(Sema &S, const EffectiveContext &EC, AccessTarget &Target, AccessSpecifier FinalAccess, CXXBasePaths &Paths) argument 1031 TryDiagnoseProtectedAccess(Sema &S, const EffectiveContext &EC, AccessTarget &Target) argument 1106 diagnoseBadDirectAccess(Sema &S, const EffectiveContext &EC, AccessTarget &entity) argument 1163 DiagnoseAccessPath(Sema &S, const EffectiveContext &EC, AccessTarget &entity) argument 1272 DiagnoseBadAccess(Sema &S, SourceLocation Loc, const EffectiveContext &EC, AccessTarget &Entity) argument 1328 IsAccessible(Sema &S, const EffectiveContext &EC, AccessTarget &Entity) argument 1406 DelayDependentAccess(Sema &S, const EffectiveContext &EC, SourceLocation Loc, const AccessTarget &Entity) argument 1424 CheckEffectiveAccess(Sema &S, const EffectiveContext &EC, SourceLocation Loc, AccessTarget &Entity) argument [all...] |
/openbsd-current/gnu/llvm/llvm/lib/DebugInfo/MSF/ |
H A D | MSFBuilder.cpp | 186 if (auto EC = allocateBlocks(ReqBlocks, NewBlocks)) 187 return std::move(EC); 205 if (auto EC = allocateBlocks(AddedBlocks, AddedBlockList)) 206 return EC; 269 if (auto EC = allocateBlocks(NumExtraBlocks, ExtraBlocks)) 270 return std::move(EC); 368 if (auto EC = OutFileOrError.takeError()) 369 return std::move(EC); 375 if (auto EC = Writer.writeObject(*Layout.SB)) 376 return std::move(EC); [all...] |
/openbsd-current/gnu/llvm/llvm/include/llvm/DebugInfo/CodeView/ |
H A D | CVRecord.h | 84 if (auto EC = F(R)) 85 return EC; 98 if (auto EC = Reader.readObject(Prefix)) 99 return std::move(EC); 105 if (auto EC = Reader.readBytes(RawData, Prefix->RecordLen + sizeof(uint16_t))) 106 return std::move(EC);
|
/openbsd-current/gnu/llvm/llvm/tools/obj2yaml/ |
H A D | obj2yaml.cpp | 58 if (std::error_code EC = FileOrErr.getError()) 59 return errorCodeToError(EC); 109 std::error_code EC; local 111 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_Text)); 112 if (EC) { 114 << "failed to open '" + OutputFilename + "': " + EC.message() << '\n';
|
/openbsd-current/gnu/llvm/llvm/include/llvm/IR/ |
H A D | LLVMRemarkStreamer.h | 50 std::error_code EC; member in struct:llvm::LLVMRemarkSetupErrorInfo 55 EC = EIB.convertToErrorCode(); 60 std::error_code convertToErrorCode() const override { return EC; }
|
/openbsd-current/gnu/llvm/llvm/tools/llvm-modextract/ |
H A D | llvm-modextract.cpp | 65 std::error_code EC; local 67 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None)); 68 ExitOnErr(errorCodeToError(EC));
|
/openbsd-current/gnu/llvm/llvm/tools/llvm-xray/ |
H A D | xray-fdr-dump.cpp | 43 if (auto EC = sys::fs::file_size(DumpInput, FileSize)) 44 return createStringError(EC, "Failed to get file size for '%s'.", 47 std::error_code EC; 50 EC);
|
/openbsd-current/gnu/llvm/llvm/tools/lli/ |
H A D | ExecutionUtils.cpp | 137 std::error_code EC; local 138 auto TestOut = std::make_unique<ToolOutputFile>("-", EC, sys::fs::OF_None); 139 if (EC) { 140 errs() << "Error creating tool output file: " << EC.message() << '\n';
|
/openbsd-current/gnu/llvm/clang/tools/libclang/ |
H A D | CXLoadedDiagnostic.cpp | 252 std::error_code EC = readDiagnostics(file); 253 if (EC) { 254 switch (EC.value()) { 259 reportBad(CXLoadDiag_CannotLoad, EC.message()); 262 reportInvalidFile(EC.message()); 296 std::error_code EC; 297 if ((EC = readLocation(SDStart, *Start))) 298 return EC; 299 if ((EC = readLocation(SDEnd, *End))) 300 return EC; [all...] |
/openbsd-current/gnu/llvm/llvm/lib/Support/Windows/ |
H A D | Process.inc | 154 std::error_code EC; 163 return EC; 168 EC = windows::UTF8ToUTF16(Arg, ArgW); 169 if (EC) 170 return EC; 180 return EC; 190 EC = windows::UTF16ToUTF8(FileData.cFileName, wcslen(FileData.cFileName), 192 if (EC) 202 return EC; 227 std::error_code EC [all...] |