Patch up omissions in DebugLoc propagation.
[oota-llvm.git] / lib / Target / Mips / MipsTargetAsmInfo.h
index c798ae2a37380480b721bd2bfa1536ea9f2053b8..2b5a739e7219ea9c271ed536a75a7b0058bfe577 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "MipsSubtarget.h"
 #include "llvm/DerivedTypes.h"
-#include "llvm/GlobalVariable.h"
 #include "llvm/Target/TargetAsmInfo.h"
 #include "llvm/Target/TargetOptions.h"
 #include "llvm/Target/ELFTargetAsmInfo.h"
@@ -24,6 +23,7 @@
 namespace llvm {
 
   // Forward declaration.
+  class GlobalValue;
   class MipsTargetMachine;
 
   struct MipsTargetAsmInfo : public ELFTargetAsmInfo {
@@ -34,6 +34,12 @@ namespace llvm {
     virtual SectionKind::Kind
     SectionKindForGlobal(const GlobalValue *GV) const;
 
+    /// SectionFlagsForGlobal - This hook allows the target to select proper
+    /// section flags either for given global or for section.
+    virtual unsigned
+    SectionFlagsForGlobal(const GlobalValue *GV = NULL,
+                          const char* name = NULL) const;
+
     virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
 
     private: