Revert r199871 and replace it with a simple check in the debug info
[oota-llvm.git] / lib / Target / Hexagon / HexagonTargetObjectFile.cpp
index a26b81de06c5d9e886b13dfc1773edd6d9fd37a8..7773cff2d21ae1932ad6e302c78b074a070fed3c 100644 (file)
@@ -87,7 +87,7 @@ IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM,
 
 const MCSection *HexagonTargetObjectFile::
 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
-                       Mangler *Mang, TargetMachine &TM) const {
+                       Mangler *Mang, const TargetMachine &TM) const {
 
   // Handle Small Section classification here.
   if (Kind.isBSS() && IsGlobalInSmallSection(GV, TM, Kind))