CGRecordLayoutBuilder.cpp (199482) | CGRecordLayoutBuilder.cpp (199512) |
---|---|
1//===--- CGRecordLayoutBuilder.cpp - Record builder helper ------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 331 unchanged lines hidden (view full) --- 340 const CXXMethodDecl *MD = *I; 341 342 if (!MD->isVirtual()) 343 continue; 344 345 if (MD->isPure()) 346 continue; 347 | 1//===--- CGRecordLayoutBuilder.cpp - Record builder helper ------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 331 unchanged lines hidden (view full) --- 340 const CXXMethodDecl *MD = *I; 341 342 if (!MD->isVirtual()) 343 continue; 344 345 if (MD->isPure()) 346 continue; 347 |
348 // FIXME: This doesn't work. If we have an out of line body, that body will 349 // set the MD to have a body, what we want to know is, was the body present 350 // inside the declaration of the class. For now, we just avoid the problem 351 // by pretending there is no key function. 352 return 0; |
|
348 if (MD->getBody()) 349 continue; 350 351 // We found it. 352 return MD; 353 } 354 355 return 0; --- 35 unchanged lines hidden --- | 353 if (MD->getBody()) 354 continue; 355 356 // We found it. 357 return MD; 358 } 359 360 return 0; --- 35 unchanged lines hidden --- |