1 //===- NativeCompilandSymbol.cpp - Native impl for compilands ---*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "llvm/DebugInfo/PDB/Native/NativeCompilandSymbol.h"
15 NativeCompilandSymbol::NativeCompilandSymbol(NativeSession &Session,
16 DbiModuleDescriptor MI)
17 : NativeRawSymbol(Session), Module(MI) {}
19 PDB_SymType NativeCompilandSymbol::getSymTag() const {
20 return PDB_SymType::Compiland;
23 bool NativeCompilandSymbol::isEditAndContinueEnabled() const {
24 return Module.hasECInfo();
27 uint32_t NativeCompilandSymbol::getLexicalParentId() const { return 0; }
29 // The usage of getObjFileName for getLibraryName and getModuleName for getName
30 // may seem backwards, but it is consistent with DIA, which is what this API
31 // was modeled after. We may rename these methods later to try to eliminate
32 // this potential confusion.
34 std::string NativeCompilandSymbol::getLibraryName() const {
35 return Module.getObjFileName();
38 std::string NativeCompilandSymbol::getName() const {
39 return Module.getModuleName();