• Home
  • Raw
  • Download

Lines Matching refs:GC

1058                                        const GsymCreator &GC,  in TestGsymCreatorEncodeError()  argument
1063 llvm::Error Err = GC.encode(FW); in TestGsymCreatorEncodeError()
1076 GsymCreator GC; in TEST() local
1077 TestGsymCreatorEncodeError(llvm::support::little, GC, in TEST()
1081 const uint32_t FuncName = GC.insertString("foo"); in TEST()
1084 GC.addFunctionInfo(FunctionInfo(FuncAddr, FuncSize, FuncName)); in TEST()
1085 TestGsymCreatorEncodeError(llvm::support::little, GC, in TEST()
1089 llvm::Error finalizeErr = GC.finalize(OS); in TEST()
1091 finalizeErr = GC.finalize(OS); in TEST()
1096 GC.setUUID(InvalidUUID); in TEST()
1097 TestGsymCreatorEncodeError(llvm::support::little, GC, in TEST()
1099 GC.setUUID(ValidUUID); in TEST()
1102 GC.forEachFunctionInfo([](FunctionInfo &FI) -> bool { in TEST()
1106 TestGsymCreatorEncodeError(llvm::support::little, GC, in TEST()
1110 GC.forEachFunctionInfo([](FunctionInfo &FI) -> bool { in TEST()
1115 TestGsymCreatorEncodeError(llvm::support::little, GC, in TEST()
1119 static void Compare(const GsymCreator &GC, const GsymReader &GR) { in Compare() argument
1122 GC.forEachFunctionInfo([&](const FunctionInfo &FI) -> bool { in Compare()
1130 static void TestEncodeDecode(const GsymCreator &GC, in TestEncodeDecode() argument
1137 llvm::Error Err = GC.encode(FW); in TestEncodeDecode()
1148 Compare(GC, GR.get()); in TestEncodeDecode()
1153 GsymCreator GC; in TEST() local
1154 GC.setUUID(UUID); in TEST()
1157 const uint32_t Func1Name = GC.insertString("foo"); in TEST()
1158 const uint32_t Func2Name = GC.insertString("bar"); in TEST()
1159 GC.addFunctionInfo(FunctionInfo(BaseAddr+0x00, 0x10, Func1Name)); in TEST()
1160 GC.addFunctionInfo(FunctionInfo(BaseAddr+0x20, 0x10, Func2Name)); in TEST()
1161 Error Err = GC.finalize(llvm::nulls()); in TEST()
1163 TestEncodeDecode(GC, llvm::support::little, in TEST()
1169 TestEncodeDecode(GC, llvm::support::big, in TEST()
1179 GsymCreator GC; in TEST() local
1180 GC.setUUID(UUID); in TEST()
1183 const uint32_t Func1Name = GC.insertString("foo"); in TEST()
1184 const uint32_t Func2Name = GC.insertString("bar"); in TEST()
1185 GC.addFunctionInfo(FunctionInfo(BaseAddr+0x000, 0x100, Func1Name)); in TEST()
1186 GC.addFunctionInfo(FunctionInfo(BaseAddr+0x200, 0x100, Func2Name)); in TEST()
1187 Error Err = GC.finalize(llvm::nulls()); in TEST()
1189 TestEncodeDecode(GC, llvm::support::little, in TEST()
1195 TestEncodeDecode(GC, llvm::support::big, in TEST()
1205 GsymCreator GC; in TEST() local
1206 GC.setUUID(UUID); in TEST()
1209 const uint32_t Func1Name = GC.insertString("foo"); in TEST()
1210 const uint32_t Func2Name = GC.insertString("bar"); in TEST()
1211 GC.addFunctionInfo(FunctionInfo(BaseAddr+0x000, 0x100, Func1Name)); in TEST()
1212 GC.addFunctionInfo(FunctionInfo(BaseAddr+0x20000, 0x100, Func2Name)); in TEST()
1213 Error Err = GC.finalize(llvm::nulls()); in TEST()
1215 TestEncodeDecode(GC, llvm::support::little, in TEST()
1221 TestEncodeDecode(GC, llvm::support::big, in TEST()
1231 GsymCreator GC; in TEST() local
1232 GC.setUUID(UUID); in TEST()
1235 const uint32_t Func1Name = GC.insertString("foo"); in TEST()
1236 const uint32_t Func2Name = GC.insertString("bar"); in TEST()
1237 GC.addFunctionInfo(FunctionInfo(BaseAddr+0x000, 0x100, Func1Name)); in TEST()
1238 GC.addFunctionInfo(FunctionInfo(BaseAddr+0x100000000, 0x100, Func2Name)); in TEST()
1239 Error Err = GC.finalize(llvm::nulls()); in TEST()
1241 TestEncodeDecode(GC, llvm::support::little, in TEST()
1247 TestEncodeDecode(GC, llvm::support::big, in TEST()
1271 GsymCreator GC; in TEST() local
1272 GC.setUUID(UUID); in TEST()
1277 const uint32_t Func1Name = GC.insertString("foo"); in TEST()
1278 const uint32_t Func2Name = GC.insertString("bar"); in TEST()
1280 GC.addFunctionInfo(FunctionInfo(Func1Addr, FuncSize, Func1Name)); in TEST()
1281 GC.addFunctionInfo(FunctionInfo(Func2Addr, FuncSize, Func2Name)); in TEST()
1282 Error FinalizeErr = GC.finalize(llvm::nulls()); in TEST()
1287 llvm::Error Err = GC.encode(FW); in TEST()
1315 GsymCreator GC; in TEST() local
1316 FunctionInfo FI(0x1000, 0x100, GC.insertString("main")); in TEST()
1319 const uint32_t MainFileIndex = GC.insertFile("/tmp/main.c"); in TEST()
1320 const uint32_t FooFileIndex = GC.insertFile("/tmp/foo.h"); in TEST()
1330 FI.Inline->Name = GC.insertString("inline1"); in TEST()
1335 Inline2.Name = GC.insertString("inline2"); in TEST()
1341 Inline3.Name = GC.insertString("inline3"); in TEST()
1346 GC.addFunctionInfo(std::move(FI)); in TEST()
1347 Error FinalizeErr = GC.finalize(llvm::nulls()); in TEST()
1352 llvm::Error Err = GC.encode(FW); in TEST()
1463 GsymCreator GC; in TEST() local
1464 DwarfTransformer DT(*DwarfContext, OS, GC); in TEST()
1467 ASSERT_THAT_ERROR(GC.finalize(OS), Succeeded()); in TEST()
1472 ASSERT_THAT_ERROR(GC.encode(FW), Succeeded()); in TEST()
1540 GsymCreator GC; in TEST() local
1541 DwarfTransformer DT(*DwarfContext, OS, GC); in TEST()
1544 ASSERT_THAT_ERROR(GC.finalize(OS), Succeeded()); in TEST()
1549 ASSERT_THAT_ERROR(GC.encode(FW), Succeeded()); in TEST()
1647 GsymCreator GC; in TEST() local
1648 DwarfTransformer DT(*DwarfContext, OS, GC); in TEST()
1651 ASSERT_THAT_ERROR(GC.finalize(OS), Succeeded()); in TEST()
1656 ASSERT_THAT_ERROR(GC.encode(FW), Succeeded()); in TEST()
1747 GsymCreator GC; in TEST() local
1748 DwarfTransformer DT(*DwarfContext, OS, GC); in TEST()
1753 GC.SetValidTextRanges(TextRanges); in TEST()
1756 ASSERT_THAT_ERROR(GC.finalize(OS), Succeeded()); in TEST()
1761 ASSERT_THAT_ERROR(GC.encode(FW), Succeeded()); in TEST()
1921 GsymCreator GC; in TEST() local
1922 DwarfTransformer DT(*DwarfContext, OS, GC); in TEST()
1925 ASSERT_THAT_ERROR(GC.finalize(OS), Succeeded()); in TEST()
1930 ASSERT_THAT_ERROR(GC.encode(FW), Succeeded()); in TEST()
2181 GsymCreator GC; in TEST() local
2182 DwarfTransformer DT(*DwarfContext, OS, GC); in TEST()
2185 ASSERT_THAT_ERROR(GC.finalize(OS), Succeeded()); in TEST()
2190 ASSERT_THAT_ERROR(GC.encode(FW), Succeeded()); in TEST()
2360 GsymCreator GC; in TEST() local
2361 DwarfTransformer DT(*DwarfContext, OS, GC); in TEST()
2364 ASSERT_THAT_ERROR(GC.finalize(OS), Succeeded()); in TEST()
2369 ASSERT_THAT_ERROR(GC.encode(FW), Succeeded()); in TEST()
2500 GsymCreator GC; in TEST() local
2501 DwarfTransformer DT(*DwarfContext, OS, GC); in TEST()
2504 ASSERT_THAT_ERROR(GC.finalize(OS), Succeeded()); in TEST()
2509 ASSERT_THAT_ERROR(GC.encode(FW), Succeeded()); in TEST()