LLVM 18.0.0git
|
#include "DwarfCompileUnit.h"
#include "AddressPool.h"
#include "DwarfExpression.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/DIE.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/TargetFrameLowering.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCSection.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/MCSymbolWasm.h"
#include "llvm/MC/MachineLocation.h"
#include "llvm/Target/TargetLoweringObjectFile.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include <iterator>
#include <optional>
#include <string>
#include <utility>
Go to the source code of this file.
Functions | |
static dwarf::Tag | GetCompileUnitType (UnitKind Kind, DwarfDebug *DW) |
static SmallVector< const DIVariable *, 2 > | dependencies (DbgVariable *Var) |
Return all DIVariables that appear in count: expressions. | |
static SmallVector< DbgVariable *, 8 > | sortLocalVars (SmallVectorImpl< DbgVariable * > &Input) |
Sort local variables so that variables appearing inside of helper expressions come first. | |
|
static |
Return all DIVariables that appear in count: expressions.
Definition at line 971 of file DwarfCompileUnit.cpp.
References llvm::DbgVariable::getType().
Referenced by sortLocalVars().
|
static |
Definition at line 45 of file DwarfCompileUnit.cpp.
References llvm::DwarfDebug::getDwarfVersion().
|
static |
Sort local variables so that variables appearing inside of helper expressions come first.
Definition at line 1017 of file DwarfCompileUnit.cpp.
References assert(), llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::count(), dependencies(), llvm::SmallVectorBase< Size_T >::empty(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::insert(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::lookup(), llvm::SmallVectorTemplateBase< T, bool >::pop_back(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::reverse().
Referenced by llvm::DwarfCompileUnit::createAndAddScopeChildren().