mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 01:38:26 +00:00
Fixed some whitespace/80+ violations. Also added a space after a namespace declaration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173772 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
67866101a9
commit
3dcfdab267
@ -1,4 +1,4 @@
|
||||
//===-- ObjCARC.cpp --------------------------------------------------------===//
|
||||
//===-- ObjCARC.cpp -------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
|
@ -293,7 +293,8 @@ static inline void EraseInstruction(Instruction *CI) {
|
||||
|
||||
/// \brief Test whether the given value is possible a retainable object pointer.
|
||||
static inline bool IsPotentialRetainableObjPtr(const Value *Op) {
|
||||
// Pointers to static or stack storage are not valid retainable object pointers.
|
||||
// Pointers to static or stack storage are not valid retainable object
|
||||
// pointers.
|
||||
if (isa<Constant>(Op) || isa<AllocaInst>(Op))
|
||||
return false;
|
||||
// Special arguments can not be a valid retainable object pointer.
|
||||
@ -310,7 +311,8 @@ static inline bool IsPotentialRetainableObjPtr(const Value *Op) {
|
||||
PointerType *Ty = dyn_cast<PointerType>(Op->getType());
|
||||
if (!Ty)
|
||||
return false;
|
||||
// Conservatively assume anything else is a potential retainable object pointer.
|
||||
// Conservatively assume anything else is a potential retainable object
|
||||
// pointer.
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -532,6 +532,3 @@ bool ObjCARCContract::runOnFunction(Function &F) {
|
||||
|
||||
return Changed;
|
||||
}
|
||||
|
||||
/// @}
|
||||
///
|
||||
|
@ -36,6 +36,7 @@ namespace llvm {
|
||||
|
||||
namespace llvm {
|
||||
namespace objcarc {
|
||||
|
||||
/// \brief This is similar to BasicAliasAnalysis, and it uses many of the same
|
||||
/// techniques, except it uses special ObjC-specific reasoning about pointer
|
||||
/// relationships.
|
||||
|
Loading…
x
Reference in New Issue
Block a user