LLVM
8.0.1
|
#include "llvm/Object/ArchiveWriter.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/BinaryFormat/Magic.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/Object/Archive.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm/Object/SymbolicFile.h"
#include "llvm/Support/EndianStream.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/ToolOutputFile.h"
#include "llvm/Support/raw_ostream.h"
#include <map>
#include <unistd.h>
Go to the source code of this file.
|
static |
Definition at line 238 of file ArchiveWriter.cpp.
References llvm::NewArchiveMember::Buf, computeRelativePath(), llvm::NewArchiveMember::IsNew, and llvm::NewArchiveMember::MemberName.
Referenced by llvm::CodeViewContext::addFile(), and printMemberHeader().
|
static |
Definition at line 435 of file ArchiveWriter.cpp.
References llvm::NewArchiveMember::Buf, llvm::Data, E, llvm::raw_ostream::flush(), llvm::MemoryBufferRef::getBuffer(), llvm::MemoryBufferRef::getBufferSize(), getSymbols(), isDarwin(), llvm::NewArchiveMember::ModTime, llvm::OffsetToAlignment(), printMemberHeader(), llvm::MipsISD::Ret, llvm::StringRef::size(), llvm::Expected< T >::takeError(), llvm::raw_ostream::tell(), and llvm::sys::toTimePoint().
Referenced by llvm::writeArchive().
Definition at line 196 of file ArchiveWriter.cpp.
References llvm::sys::path::append(), llvm::sys::path::begin(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::sys::path::end(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::sys::path::is_absolute(), llvm::sys::path::parent_path(), replace(), and llvm::SmallString< InternalLen >::str().
Referenced by addToStringTable().
|
static |
Definition at line 291 of file ArchiveWriter.cpp.
References llvm::raw_ostream::flush(), llvm::OffsetToAlignment(), printWithSpacePadding(), Size, and llvm::StringRef::size().
Referenced by llvm::writeArchive().
|
static |
Definition at line 396 of file ArchiveWriter.cpp.
References llvm::file_magic::bitcode, llvm::consumeError(), Context, llvm::object::SymbolicFile::createSymbolicFile(), llvm::errorCodeToError(), llvm::MemoryBufferRef::getBuffer(), llvm::identify_magic(), isArchiveSymbol(), llvm::MipsISD::Ret, and llvm::raw_ostream::tell().
Referenced by computeMemberData(), and llvm::pdb::SymbolStream::getSymbolArray().
|
static |
Definition at line 224 of file ArchiveWriter.cpp.
References llvm::object::Archive::K_BSD, llvm::object::Archive::K_COFF, llvm::object::Archive::K_DARWIN, llvm::object::Archive::K_DARWIN64, llvm::object::Archive::K_GNU, llvm::object::Archive::K_GNU64, and llvm_unreachable.
Referenced by printNBits(), and writeSymbolTable().
|
static |
Definition at line 311 of file ArchiveWriter.cpp.
References llvm::object::BasicSymbolRef::getFlags(), llvm::object::BasicSymbolRef::SF_FormatSpecific, llvm::object::BasicSymbolRef::SF_Global, and llvm::object::BasicSymbolRef::SF_Undefined.
Referenced by getSymbols().
|
static |
Definition at line 129 of file ArchiveWriter.cpp.
References llvm::object::Archive::K_BSD, llvm::object::Archive::K_COFF, llvm::object::Archive::K_DARWIN, llvm::object::Archive::K_DARWIN64, llvm::object::Archive::K_GNU, llvm::object::Archive::K_GNU64, and llvm_unreachable.
Referenced by print(), printMemberHeader(), llvm::writeArchive(), and writeSymbolTable().
|
static |
Definition at line 124 of file ArchiveWriter.cpp.
References llvm::object::Archive::K_DARWIN, and llvm::object::Archive::K_DARWIN64.
Referenced by addNegOperand(), computeMemberData(), EvaluateCRExpr(), llvm::PPCSubtarget::isDarwinABI(), llvm::LowerPPCMachineInstrToMCInst(), and writeSymbolTable().
|
static |
Definition at line 303 of file ArchiveWriter.cpp.
Referenced by llvm::PMDataManager::dumpPassInfo(), llvm::pruneCache(), AllocaSlices::SliceBuilder::SliceBuilder(), and writeSymbolTable().
|
static |
Definition at line 145 of file ArchiveWriter.cpp.
References llvm::support::big, isBSDLike(), llvm::support::little, and llvm::support::endian::write().
Referenced by llvm::DIE::addChild(), llvm::DIEAbbrev::AddImplicitConstAttribute(), llvm::VPWidenRecipe::appendInstruction(), areCandidatesToMergeOrPair(), llvm::DIELoc::BestForm(), llvm::DIEBlock::BestForm(), llvm::GCOVFunction::blocks(), llvm::VPlanSlp::buildGraph(), llvm::RegBankSelect::EdgeInsertPoint::canMaterialize(), llvm::MemoryUse::classof(), llvm::MemoryPhi::classof(), llvm::VPWidenIntOrFpInductionRecipe::classof(), llvm::VPWidenPHIRecipe::classof(), llvm::VPBlendRecipe::classof(), llvm::VPInterleaveRecipe::classof(), llvm::VPPredInstPHIRecipe::classof(), llvm::VPWidenMemoryInstructionRecipe::classof(), llvm::APInt::countPopulation(), createBBSelectReg(), llvm::createControlHeightReductionLegacyPass(), llvm::createCostModelAnalysisPass(), llvm::createMemDepPrinter(), llvm::createMemDerefPrinter(), DeleteTriviallyDeadInstructions(), llvm::MemoryDepChecker::Dependence::Dependence(), llvm::DependenceAnalysisWrapperPass::DependenceAnalysisWrapperPass(), despeculateCountZeros(), llvm::DIEDelta::DIEDelta(), DoInitialMatch(), llvm::GCOVBlock::dsts(), llvm::Comdat::dump(), llvm::cfg::Update< NodePtr >::dump(), llvm::RegisterBankInfo::PartialMapping::dump(), llvm::Metadata::dump(), llvm::DominanceFrontierBase< BasicBlock, false >::dump(), llvm::DebugCounter::dump(), llvm::sampleprof::LineLocation::dump(), llvm::DIEAbbrev::dump(), llvm::Type::dump(), llvm::RegisterBankInfo::ValueMapping::dump(), llvm::sampleprof::SampleRecord::dump(), llvm::Value::dump(), llvm::sampleprof::FunctionSamples::dump(), llvm::RegisterBankInfo::InstructionMapping::dump(), llvm::ScaledNumberBase::dump(), llvm::RegionBase< RegionTraits< Function > >::dump(), llvm::DIEValue::dump(), llvm::DIE::dump(), llvm::Module::dump(), llvm::RegionInfoBase< RegionTraits< Function > >::dump(), llvm::LiveRangeUpdater::dump(), llvm::ModuleSummaryIndex::dump(), llvm::NamedMDNode::dump(), dumpIR(), dumpLocation(), llvm::AppleAccelTableStaticTypeData::emit(), EmitHiLo(), llvm::ARMConstantPoolValue::equals(), llvm::LazyBlockFrequencyInfoPass::getBFI(), llvm::MemoryAccess::getBlock(), llvm::GCOVFile::getChecksum(), llvm::sroa::AllocaSlices::getDeadOperands(), llvm::LiveRangeUpdater::getDest(), llvm::DIEEntry::getEntry(), llvm::SubtargetFeatures::getFeatures(), llvm::SMDiagnostic::getFixIts(), llvm::StackMaps::getFnInfos(), llvm::IVUsersWrapperPass::getIU(), llvm::ARMConstantPoolMBB::getMBB(), llvm::MemorySSA::getMemoryAccess(), llvm::MemorySSAWrapperPass::getMSSA(), llvm::RuntimePointerChecking::getNumberOfChecks(), llvm::MachineFunction::getNumBlockIDs(), llvm::VPInstruction::getOpcode(), llvm::VPRecipeBase::getParent(), getPHIDestReg(), llvm::ARMConstantPoolConstant::getPromotedGlobalInit(), llvm::MachineRegionInfoPass::getRegionInfo(), llvm::RegionInfoPass::getRegionInfo(), getSchedRegions(), llvm::DIEString::getString(), llvm::DIEInlineString::getString(), llvm::ARMConstantPoolSymbol::getSymbol(), llvm::ModuleSummaryIndex::getTypeIdSummary(), llvm::DIEExpr::getValue(), llvm::DIELabel::getValue(), llvm::DIELocList::getValue(), llvm::Function::hasPrologueData(), llvm::LoopAccessInfo::hasStride(), INITIALIZE_PASS(), isAlwaysFoldable(), llvm::rdf::RegisterAggr::isCoverOf(), isFunctionEntryBlock(), llvm::IVUsers::isIVUserOrOperand(), isKnownBaseResult(), isMergeableLdStUpdate(), llvm::MachineDominatorTree::isReachableFromEntry(), isTerminalReg(), llvm::LegalityQuery::LegalityQuery(), llvm::sampleprof::LineLocation::LineLocation(), llvm::opt::ArgList::MakeArgString(), mayUsePostIncMode(), llvm::sampleprof::SampleRecord::merge(), llvm::MIPrinter::MIPrinter(), llvm::MIRPrinter::MIRPrinter(), llvm::SlotIndex::operator bool(), llvm::ConstantRange::operator!=(), llvm::LiveInterval::operator<(), operator<<(), llvm::itanium_demangle::parse_discriminator(), llvm::MIPrinter::print(), llvm::Value::print(), llvm::AppleAccelTableData::Atom::print(), llvm::LoopInfoBase< BasicBlock, Loop >::print(), llvm::LiveInterval::print(), printExtendedName(), printFile(), PrintLLVMName(), printMCExpr(), llvm::DominatorTreeWrapperPass::releaseMemory(), llvm::LoopAccessLegacyAnalysis::releaseMemory(), llvm::MachineJumpTableInfo::RemoveJumpTable(), llvm::MemoryDef::resetOptimized(), llvm::IVUsersPrinterPass::run(), llvm::CFGViewerPass::run(), llvm::PostDominatorTreePrinterPass::run(), llvm::DemandedBitsPrinterPass::run(), llvm::DominanceFrontierPrinterPass::run(), llvm::DominatorTreePrinterPass::run(), llvm::RegionInfoPrinterPass::run(), llvm::LegacyDivergenceAnalysis::runOnFunction(), llvm::VPReplicateRecipe::setAlsoPack(), llvm::GISelCSEInfo::setCSEConfig(), llvm::LTOCodeGenerator::setDiagnosticHandler(), llvm::MachineMemOperand::setOffset(), llvm::FileInfo::setProgramCount(), llvm::MachineFrameInfo::setRestorePoint(), llvm::DIEInteger::setValue(), AllocaSlices::SliceBuilder::SliceBuilder(), llvm::LiveInterval::SubRange::SubRange(), llvm::APFloat::toString(), llvm::MachineTraceMetrics::Trace::Trace(), llvm::SDNode::value_end(), llvm::MachineFunctionProperties::verifyRequiredProperties(), writeCFGToDotFile(), llvm::DebugCounter::~DebugCounter(), and llvm::MachineSchedContext::~MachineSchedContext().
|
static |
Definition at line 175 of file ArchiveWriter.cpp.
References Name, llvm::OffsetToAlignment(), printRestOfMemberHeader(), printWithSpacePadding(), llvm::StringRef::size(), and llvm::raw_ostream::write().
Referenced by printMemberHeader(), and writeSymbolTable().
|
static |
Definition at line 166 of file ArchiveWriter.cpp.
References printRestOfMemberHeader(), and printWithSpacePadding().
Referenced by printMemberHeader(), and writeSymbolTable().
|
static |
Definition at line 251 of file ArchiveWriter.cpp.
References addToStringTable(), llvm::Data, llvm::NewArchiveMember::GID, llvm::StringMap< ValueTy, AllocatorTy >::insert(), isBSDLike(), llvm::NewArchiveMember::MemberName, llvm::NewArchiveMember::Perms, printBSDMemberHeader(), printGNUSmallMemberHeader(), printRestOfMemberHeader(), printWithSpacePadding(), llvm::raw_ostream::tell(), llvm::NewArchiveMember::UID, and useStringTable().
Referenced by computeMemberData().
|
static |
Definition at line 322 of file ArchiveWriter.cpp.
References is64BitKind(), and Kind.
Referenced by writeSymbolTable().
|
static |
Definition at line 150 of file ArchiveWriter.cpp.
References llvm::format(), printWithSpacePadding(), and llvm::sys::toTimeT().
Referenced by printBSDMemberHeader(), printGNUSmallMemberHeader(), and printMemberHeader().
|
static |
Definition at line 116 of file ArchiveWriter.cpp.
References assert(), llvm::Data, llvm::raw_ostream::indent(), and llvm::raw_ostream::tell().
Referenced by computeStringTable(), printBSDMemberHeader(), printGNUSmallMemberHeader(), printMemberHeader(), and printRestOfMemberHeader().
Definition at line 191 of file ArchiveWriter.cpp.
References llvm::StringRef::contains(), and llvm::StringRef::size().
Referenced by printMemberHeader().
|
static |
Definition at line 330 of file ArchiveWriter.cpp.
References llvm::StringRef::empty(), is64BitKind(), isBSDLike(), isDarwin(), Name, now(), llvm::OffsetToAlignment(), printBSDMemberHeader(), printGNUSmallMemberHeader(), printNBits(), Size, llvm::StringRef::size(), llvm::raw_ostream::tell(), and llvm::raw_ostream::write().
Referenced by llvm::writeArchive().