@@ -1853,45 +1853,40 @@ class DINamespace : public DIScope {
18531853 friend class LLVMContextImpl ;
18541854 friend class MDNode ;
18551855
1856- unsigned Line;
18571856 unsigned ExportSymbols : 1 ;
18581857
1859- DINamespace (LLVMContext &Context, StorageType Storage, unsigned Line ,
1860- bool ExportSymbols, ArrayRef<Metadata *> Ops)
1858+ DINamespace (LLVMContext &Context, StorageType Storage, bool ExportSymbols ,
1859+ ArrayRef<Metadata *> Ops)
18611860 : DIScope(Context, DINamespaceKind, Storage, dwarf::DW_TAG_namespace,
18621861 Ops),
1863- Line (Line), ExportSymbols(ExportSymbols) {}
1862+ ExportSymbols (ExportSymbols) {}
18641863 ~DINamespace () = default ;
18651864
18661865 static DINamespace *getImpl (LLVMContext &Context, DIScope *Scope,
1867- DIFile *File, StringRef Name, unsigned Line,
1868- bool ExportSymbols, StorageType Storage,
1869- bool ShouldCreate = true ) {
1870- return getImpl (Context, Scope, File, getCanonicalMDString (Context, Name),
1871- Line, ExportSymbols, Storage, ShouldCreate);
1866+ StringRef Name, bool ExportSymbols,
1867+ StorageType Storage, bool ShouldCreate = true ) {
1868+ return getImpl (Context, Scope, getCanonicalMDString (Context, Name),
1869+ ExportSymbols, Storage, ShouldCreate);
18721870 }
18731871 static DINamespace *getImpl (LLVMContext &Context, Metadata *Scope,
1874- Metadata *File, MDString *Name, unsigned Line,
1875- bool ExportSymbols, StorageType Storage,
1876- bool ShouldCreate = true );
1872+ MDString *Name, bool ExportSymbols,
1873+ StorageType Storage, bool ShouldCreate = true );
18771874
18781875 TempDINamespace cloneImpl () const {
1879- return getTemporary (getContext (), getScope (), getFile (), getName (),
1880- getLine (), getExportSymbols ());
1876+ return getTemporary (getContext (), getScope (), getName (),
1877+ getExportSymbols ());
18811878 }
18821879
18831880public:
1884- DEFINE_MDNODE_GET (DINamespace, (DIScope * Scope, DIFile *File, StringRef Name,
1885- unsigned Line, bool ExportSymbols),
1886- (Scope, File, Name, Line, ExportSymbols))
18871881 DEFINE_MDNODE_GET (DINamespace,
1888- (Metadata * Scope, Metadata *File, MDString *Name,
1889- unsigned Line, bool ExportSymbols),
1890- (Scope, File, Name, Line, ExportSymbols))
1882+ (DIScope *Scope, StringRef Name, bool ExportSymbols),
1883+ (Scope, Name, ExportSymbols))
1884+ DEFINE_MDNODE_GET(DINamespace,
1885+ (Metadata *Scope, MDString *Name, bool ExportSymbols),
1886+ (Scope, Name, ExportSymbols))
18911887
18921888 TempDINamespace clone() const { return cloneImpl (); }
18931889
1894- unsigned getLine () const { return Line; }
18951890 bool getExportSymbols () const { return ExportSymbols; }
18961891 DIScope *getScope () const { return cast_or_null<DIScope>(getRawScope ()); }
18971892 StringRef getName () const { return getStringOperand (2 ); }
0 commit comments