LLVM 24.0.0git
GsymCreator.cpp File Reference
#include "llvm/DebugInfo/GSYM/GsymCreator.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/DebugInfo/GSYM/FileWriter.h"
#include "llvm/DebugInfo/GSYM/Header.h"
#include "llvm/DebugInfo/GSYM/LineTable.h"
#include "llvm/DebugInfo/GSYM/OutputAggregator.h"
#include "llvm/MC/StringTableBuilder.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <functional>
#include <vector>

Go to the source code of this file.

Functions

static bool isSupportedMangledPrefix (StringRef Name)
static bool shouldReplaceWithMangledName (StringRef AlternateName, StringRef CurrentName)
static std::optional< uint64_t > getSectionEndAddress (const object::ObjectFile &Obj, uint64_t Addr)
 Find the end address of the section that contains Addr.

Function Documentation

◆ getSectionEndAddress()

std::optional< uint64_t > getSectionEndAddress ( const object::ObjectFile & Obj,
uint64_t Addr )
static

Find the end address of the section that contains Addr.

Returns
The address of the first byte past the end of the section that contains Addr, or std::nullopt if no section contains Addr.

Definition at line 164 of file GsymCreator.cpp.

References uint64_t.

Referenced by llvm::gsym::GsymCreator::finalize().

◆ isSupportedMangledPrefix()

bool isSupportedMangledPrefix ( StringRef Name)
static

Definition at line 29 of file GsymCreator.cpp.

Referenced by shouldReplaceWithMangledName().

◆ shouldReplaceWithMangledName()

bool shouldReplaceWithMangledName ( StringRef AlternateName,
StringRef CurrentName )
static