mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
NVPTXTargetObjectFile.h: Initialize some pointers as NULL in the constructor of NVPTXTargetObjectFile. ~NVPTXTargetObjectFile() tries to delete them.
It caused crash on some hosts since r184595. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184728 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -21,7 +21,29 @@ class Module;
|
|||||||
class NVPTXTargetObjectFile : public TargetLoweringObjectFile {
|
class NVPTXTargetObjectFile : public TargetLoweringObjectFile {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
NVPTXTargetObjectFile() {}
|
NVPTXTargetObjectFile() {
|
||||||
|
TextSection = 0;
|
||||||
|
DataSection = 0;
|
||||||
|
BSSSection = 0;
|
||||||
|
ReadOnlySection = 0;
|
||||||
|
|
||||||
|
StaticCtorSection = 0;
|
||||||
|
StaticDtorSection = 0;
|
||||||
|
LSDASection = 0;
|
||||||
|
EHFrameSection = 0;
|
||||||
|
DwarfAbbrevSection = 0;
|
||||||
|
DwarfInfoSection = 0;
|
||||||
|
DwarfLineSection = 0;
|
||||||
|
DwarfFrameSection = 0;
|
||||||
|
DwarfPubTypesSection = 0;
|
||||||
|
DwarfDebugInlineSection = 0;
|
||||||
|
DwarfStrSection = 0;
|
||||||
|
DwarfLocSection = 0;
|
||||||
|
DwarfARangesSection = 0;
|
||||||
|
DwarfRangesSection = 0;
|
||||||
|
DwarfMacroInfoSection = 0;
|
||||||
|
}
|
||||||
|
|
||||||
~NVPTXTargetObjectFile() {
|
~NVPTXTargetObjectFile() {
|
||||||
delete TextSection;
|
delete TextSection;
|
||||||
delete DataSection;
|
delete DataSection;
|
||||||
|
Reference in New Issue
Block a user