File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -160,23 +160,20 @@ def getStorePath(bcPath):
160
160
return None
161
161
162
162
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
166
163
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
+
167
171
if not bcPath or os .path .isfile (bcPath ):
168
172
return bcPath
169
173
170
174
storePath = getStorePath (bcPath )
171
175
if storePath :
172
176
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
180
177
return bcPath
181
178
182
179
def linkFiles (pArgs , fileNames ):
You can’t perform that action at this time.
0 commit comments