C++: get rid of unnecessary explicit unthunk on main() call
commit6a7b3d7c71aa9a91d66f3d7ed059b2184dd5071c
authorAndy Arvanitis <andyarvanitis@gmail.com>
dateSat 30 Apr 2016, 12:21 (11 years ago)
parenta5bc8dc
src/Language/PureScript/CodeGen/Cpp/File.hs+1−3
@@ -173,8 +173,6 @@ nativeMain = CppFunction "main"
173173 []
174174 (CppBlock [ CppUseNamespace "Main"
175175 , CppApp (CppVar "INITIALIZE_GC") []
176− , CppApp (CppApp (CppAccessor (CppVar "main") (CppVar "Main"))
177− [CppVar unthunkMarkerValue])
178− []
176+ , CppApp (CppAccessor (CppVar "main") (CppVar "Main")) []
179177 , CppReturn (CppNumericLiteral (Left 0))
180178 ])
src/Language/PureScript/CodeGen/Cpp/Types.hs−3
@@ -121,8 +121,5 @@ arrayType = CppPrimitive "any::array"
121121thunkMarkerType :: CppType
122122thunkMarkerType = CppPrimitive "any::as_thunk"
123123
124−unthunkMarkerValue :: String
125−unthunkMarkerValue = "any::unthunk"
126−
127124ctorKey :: String
128125ctorKey = "constructor"