Skip to content

Commit e91ad00

Browse files
committed
Dusting
1 parent 869bf1d commit e91ad00

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

wllvm/extraction.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -160,23 +160,20 @@ def getStorePath(bcPath):
160160
return None
161161

162162

163-
# loicg: This function checks if the given path points to an existing bitcode file.
164-
# If it does not, it tries to look for the bitcode file in the store directory given
165-
# by the environment variable WLLVM_BC_STORE
166163
def getBitcodePath(bcPath):
164+
"""Tries to resolve the whereabouts of the bitcode.
165+
166+
First, ihecks if the given path points to an existing bitcode file.
167+
If it does not, it tries to look for the bitcode file in the store directory given
168+
by the environment variable WLLVM_BC_STORE.
169+
"""
170+
167171
if not bcPath or os.path.isfile(bcPath):
168172
return bcPath
169173

170174
storePath = getStorePath(bcPath)
171175
if storePath:
172176
return storePath
173-
174-
# storeEnv = os.getenv('WLLVM_BC_STORE')
175-
# if storeEnv:
176-
# hashName = hashlib.sha256(bcPath).hexdigest()
177-
# hashPath = os.path.join(storeEnv, hashName)
178-
# if os.path.isfile(hashPath):
179-
# return hashPath
180177
return bcPath
181178

182179
def linkFiles(pArgs, fileNames):

0 commit comments

Comments
 (0)