Attach AT_APPLE_optimized attribute to optimized function's debug info.
[oota-llvm.git] / include / llvm / Analysis / DebugInfo.h
index 3c43724b7672bf6c0cf9d0575ed48493493e600f..9b1379d90ae4a1645ac62460521ded5bc1091c89 100644 (file)
@@ -392,6 +392,7 @@ namespace llvm {
       return getFieldAs<DICompositeType>(13);
     }
     unsigned isArtificial() const    { return getUnsignedField(14); }
+    unsigned isOptimized() const;
 
     StringRef getFilename() const    { 
       if (getVersion() == llvm::LLVMDebugVersion7)
@@ -642,7 +643,8 @@ namespace llvm {
                                   unsigned VK = 0,
                                   unsigned VIndex = 0,
                                   DIType = DIType(),
-                                  bool isArtificial = 0);
+                                  bool isArtificial = 0,
+                                  bool isOptimized = false);
 
     /// CreateSubprogramDefinition - Create new subprogram descriptor for the
     /// given declaration.