Close unique sections when switching away from them.
[oota-llvm.git] / lib / Target / NVPTX / NVPTXSection.h
index 0d2627d62ebdd3dbfa373f73a0340a69827ee8d9..eb6194a23ee4e665420835dc1b1bc19d9bbed14a 100644 (file)
@@ -26,7 +26,8 @@ namespace llvm {
 class NVPTXSection : public MCSection {
   virtual void anchor();
 public:
-  NVPTXSection(SectionVariant V, SectionKind K) : MCSection(V, K, nullptr) {}
+  NVPTXSection(SectionVariant V, SectionKind K)
+      : MCSection(V, K, nullptr, /*Unique*/ false) {}
   virtual ~NVPTXSection() {}
 
   /// Override this as NVPTX has its own way of printing switching